Skip to content

Commit

Permalink
Use custom panels for data-title attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
stacey-gammon committed Nov 16, 2017
1 parent a7c91cd commit 80d33d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Expand Up @@ -31,6 +31,7 @@ export class SearchEmbeddableFactory extends EmbeddableFactory {
searchScope.editPath = this.getEditPath(panel.id);
return this.searchLoader.get(panel.id)
.then(savedObject => {
searchScope.sharedItemTitle = panel.title !== undefined ? panel.title : savedObject.title;
searchScope.savedObj = savedObject;
searchScope.panel = panel;
container.registerPanelIndexPattern(panel.panelIndex, savedObject.searchSource.get('index'));
Expand Down
Expand Up @@ -3,7 +3,7 @@
sorting="sort"
columns="columns"
data-shared-item
data-title="{{savedObj.title}}"
data-title="{{sharedItemTitle}}"
data-description="{{savedObj.description}}"
render-counter
class="panel-content"
Expand Down
Expand Up @@ -30,6 +30,7 @@ export class VisualizeEmbeddableFactory extends EmbeddableFactory {
visualizeScope.editUrl = this.getEditPath(panel.id);
return this.visualizeLoader.get(panel.id)
.then(savedObject => {
visualizeScope.sharedItemTitle = panel.title !== undefined ? panel.title : savedObject.title;
visualizeScope.savedObj = savedObject;
visualizeScope.panel = panel;

Expand Down
Expand Up @@ -4,7 +4,7 @@
app-state="appState"
ui-state="uiState"
data-shared-item
data-title="{{savedObj.title}}"
data-title="{{sharedItemTitle}}"
data-description="{{savedObj.description}}"
render-counter
class="panel-content">
Expand Down

0 comments on commit 80d33d2

Please sign in to comment.