mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
04d5ff7cdb
commit
0fdafb9c42
4 changed files with 5 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue