Skip to content

Commit

Permalink
Made visualize editor update embeddable title on save rather than ove…
Browse files Browse the repository at this point in the history
…rwriting the output title on embeddable update (#78212)
  • Loading branch information
ThomThomson authored Sep 23, 2020
1 parent 12153a4 commit 346c90a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,6 @@ export class VisualizeEmbeddable
dirty = true;
}

// propagate the title to the output embeddable
// but only when the visualization is in edit/Visualize mode
if (!this.parent && this.vis.title !== this.output.title) {
this.updateOutput({ title: this.vis.title });
}

if (this.vis.description && this.domNode) {
this.domNode.setAttribute('data-description', this.vis.description);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export const getTopNavConfig = (
}
const currentTitle = savedVis.title;
savedVis.title = newTitle;
embeddableHandler.updateInput({ title: newTitle });
savedVis.copyOnSave = newCopyOnSave;
savedVis.description = newDescription;
const saveOptions = {
Expand Down

0 comments on commit 346c90a

Please sign in to comment.