removing provider (#38221)
This commit is contained in:
parent
21ebc9f973
commit
463bdfb61a
|
@ -22,7 +22,7 @@ import uiRoutes from '../routes';
|
|||
import { KbnUrlProvider } from '../url';
|
||||
|
||||
import template from './error_url_overflow.html';
|
||||
import { UrlOverflowServiceProvider } from './url_overflow_service';
|
||||
import { UrlOverflowService } from './url_overflow_service';
|
||||
|
||||
export * from './url_overflow_service';
|
||||
|
||||
|
@ -34,7 +34,7 @@ uiRoutes
|
|||
controller: class OverflowController {
|
||||
constructor(Private, config, $scope) {
|
||||
const kbnUrl = Private(KbnUrlProvider);
|
||||
const urlOverflow = Private(UrlOverflowServiceProvider);
|
||||
const urlOverflow = new UrlOverflowService();
|
||||
|
||||
if (!urlOverflow.get()) {
|
||||
kbnUrl.redirectPath('/');
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
*/
|
||||
|
||||
import './error_url_overflow';
|
||||
export { UrlOverflowServiceProvider } from './url_overflow_service';
|
||||
export { UrlOverflowService } from './url_overflow_service';
|
||||
|
|
|
@ -78,7 +78,3 @@ export class UrlOverflowService {
|
|||
this._sync();
|
||||
}
|
||||
}
|
||||
|
||||
export function UrlOverflowServiceProvider() {
|
||||
return new UrlOverflowService();
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ import { capabilities } from 'ui/capabilities';
|
|||
// @ts-ignore
|
||||
import { modifyUrl } from 'ui/url';
|
||||
// @ts-ignore
|
||||
import { UrlOverflowServiceProvider } from '../error_url_overflow';
|
||||
import { UrlOverflowService } from '../error_url_overflow';
|
||||
import { npSetup } from '../new_platform';
|
||||
import { toastNotifications } from '../notify';
|
||||
// @ts-ignore
|
||||
|
@ -291,7 +291,7 @@ const $setupUrlOverflowHandling = (newPlatform: InternalCoreSetup) => (
|
|||
Private: any,
|
||||
config: any
|
||||
) => {
|
||||
const urlOverflow = Private(UrlOverflowServiceProvider);
|
||||
const urlOverflow = new UrlOverflowService();
|
||||
const check = () => {
|
||||
// disable long url checks when storing state in session storage
|
||||
if (config.get('state:storeInSessionStorage')) {
|
||||
|
|
Loading…
Reference in a new issue