mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Exposing the sharing title on the controller * Implementing the getSharingType on the controllers * Adding a getSharingSavedObjectId method * We don't need the savedObjectId anymore
This commit is contained in:
parent
e5e59b85cf
commit
0ebc879792
2 changed files with 16 additions and 0 deletions
|
@ -107,6 +107,14 @@ app.directive('dashboardApp', function ($injector) {
|
|||
dirty: !dash.id
|
||||
};
|
||||
|
||||
this.getSharingTitle = () => {
|
||||
return dash.title;
|
||||
};
|
||||
|
||||
this.getSharingType = () => {
|
||||
return 'dashboard';
|
||||
};
|
||||
|
||||
dashboardStateManager.registerChangeListener(status => {
|
||||
this.appStatus.dirty = status.dirty || !dash.id;
|
||||
updateState();
|
||||
|
|
|
@ -118,6 +118,14 @@ function VisEditor($scope, $route, timefilter, AppState, $window, kbnUrl, courie
|
|||
dirty: !savedVis.id
|
||||
};
|
||||
|
||||
this.getSharingTitle = () => {
|
||||
return savedVis.title;
|
||||
};
|
||||
|
||||
this.getSharingType = () => {
|
||||
return 'visualization';
|
||||
};
|
||||
|
||||
if (savedVis.id) {
|
||||
docTitle.change(savedVis.title);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue