Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Nov 5, 2018
1 parent e2ff582 commit 6fde6a1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 36 deletions.
6 changes: 0 additions & 6 deletions src/core_plugins/kibana/public/dashboard/dashboard_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ app.directive('dashboardViewportProvider', function (reactDirective) {
return reactDirective(DashboardViewportProvider);
});

app.service('dashboardConfig', function () {
return {
hideWriteControls: false,
};
});

app.directive('dashboardApp', function ($injector) {
const courier = $injector.get('courier');
const AppState = $injector.get('AppState');
Expand Down
24 changes: 0 additions & 24 deletions src/ui/ui_exports/ui_export_types/user_profile.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/ui/ui_nav_links/ui_nav_links_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,4 @@ export function uiNavLinksMixin(kbnServer, server) {
server.decorate('server', 'getUiNavLinks', () => (
uiNavLinks.slice(0)
));

server.decorate('request', 'getUiNavLinks', async function getUiNavLinks() {
// TODO: re-impelment to allow links to be hidden on a per-request basis
return uiNavLinks.slice(0);
});
}
2 changes: 1 addition & 1 deletion src/ui/ui_render/ui_render_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function uiRenderMixin(kbnServer, server, config) {
app,
translations,
bundleId: `app:${app.getId()}`,
nav: await server.getUiNavLinks(),
nav: server.getUiNavLinks(),
version: kbnServer.version,
branch: config.get('pkg.branch'),
buildNum: config.get('pkg.buildNum'),
Expand Down

0 comments on commit 6fde6a1

Please sign in to comment.