-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Stop using template feature of kbn top nav * Combined css
- Loading branch information
Liza Katz
authored
Jun 29, 2019
1 parent
aeed3c5
commit 7de5b0e
Showing
8 changed files
with
172 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
x-pack/legacy/plugins/graph/public/directives/graph_load.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { uiModules } from 'ui/modules'; | ||
import template from '../templates/load_workspace.html'; | ||
const app = uiModules.get('app/graph'); | ||
|
||
app.directive('graphLoad', function () { | ||
return { | ||
replace: true, | ||
restrict: 'E', | ||
template, | ||
}; | ||
}); |
17 changes: 17 additions & 0 deletions
17
x-pack/legacy/plugins/graph/public/directives/graph_save.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { uiModules } from 'ui/modules'; | ||
import template from '../templates/save_workspace.html'; | ||
const app = uiModules.get('app/graph'); | ||
|
||
app.directive('graphSave', function () { | ||
return { | ||
replace: true, | ||
restrict: 'E', | ||
template, | ||
}; | ||
}); |
17 changes: 17 additions & 0 deletions
17
x-pack/legacy/plugins/graph/public/directives/graph_settings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { uiModules } from 'ui/modules'; | ||
import template from '../templates/settings.html'; | ||
const app = uiModules.get('app/graph'); | ||
|
||
app.directive('graphSettings', function () { | ||
return { | ||
replace: true, | ||
restrict: 'E', | ||
template, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 66 additions & 60 deletions
126
x-pack/legacy/plugins/graph/public/templates/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 15 additions & 12 deletions
27
x-pack/legacy/plugins/graph/public/templates/load_workspace.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
<div | ||
class="kuiLocalDropdownTitle" | ||
i18n-id="xpack.graph.topNavMenu.open.openWorkspaceTitle" | ||
i18n-default-message="Open Workspace" | ||
></div> | ||
|
||
<saved-object-finder | ||
title="{{ ::'xpack.graph.topNavMenu.open.workspacesListTooltip' | i18n: { defaultMessage: 'Saved Workspaces' } }}" | ||
type="Graph workspace" | ||
use-local-management="true" | ||
on-choose="openSavedWorkspace" | ||
></saved-object-finder> | ||
<div> | ||
<div | ||
class="kuiLocalDropdownTitle" | ||
i18n-id="xpack.graph.topNavMenu.open.openWorkspaceTitle" | ||
i18n-default-message="Open Workspace" | ||
></div> | ||
|
||
<saved-object-finder | ||
title="{{ ::'xpack.graph.topNavMenu.open.workspacesListTooltip' | i18n: { defaultMessage: 'Saved Workspaces' } }}" | ||
type="Graph workspace" | ||
use-local-management="true" | ||
on-choose="openSavedWorkspace" | ||
></saved-object-finder> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters