mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
remove reference to local application service in graph (#64288)
This commit is contained in:
parent
321430ecad
commit
6d25d78f1a
3 changed files with 9 additions and 5 deletions
|
@ -25,3 +25,9 @@
|
|||
-webkit-touch-callout: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.gphAppWrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ export const renderApp = ({ appBasePath, element, ...deps }: GraphDependencies)
|
|||
};
|
||||
};
|
||||
|
||||
const mainTemplate = (basePath: string) => `<div ng-view class="kbnLocalApplicationWrapper">
|
||||
const mainTemplate = (basePath: string) => `<div ng-view class="gphAppWrapper">
|
||||
<base href="${basePath}" />
|
||||
</div>
|
||||
`;
|
||||
|
@ -107,14 +107,14 @@ const thirdPartyAngularDependencies = ['ngSanitize', 'ngRoute', 'react', 'ui.boo
|
|||
|
||||
function mountGraphApp(appBasePath: string, element: HTMLElement) {
|
||||
const mountpoint = document.createElement('div');
|
||||
mountpoint.setAttribute('class', 'kbnLocalApplicationWrapper');
|
||||
mountpoint.setAttribute('class', 'gphAppWrapper');
|
||||
// eslint-disable-next-line
|
||||
mountpoint.innerHTML = mainTemplate(appBasePath);
|
||||
// bootstrap angular into detached element and attach it later to
|
||||
// make angular-within-angular possible
|
||||
const $injector = angular.bootstrap(mountpoint, [moduleName]);
|
||||
element.appendChild(mountpoint);
|
||||
element.setAttribute('class', 'kbnLocalApplicationWrapper');
|
||||
element.setAttribute('class', 'gphAppWrapper');
|
||||
return $injector;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,5 +12,3 @@
|
|||
@import './main';
|
||||
@import './angular/templates/index';
|
||||
@import './components/index';
|
||||
// Local application mount wrapper styles
|
||||
@import 'src/legacy/core_plugins/kibana/public/local_application_service/index';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue