Skip to content

Commit

Permalink
Merge pull request #7185 from epixa/fix-visstate-title
Browse files Browse the repository at this point in the history
Adds title to visState before the visualization is saved
  • Loading branch information
panda01 committed May 12, 2016
2 parents f63d68e + 4f8daaa commit b93578d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/kibana/public/visualize/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ uiModules

$scope.doSave = function () {
savedVis.id = savedVis.title;
// vis.title was not bound and it's needed to reflect title into visState
$state.vis.title = savedVis.title;
savedVis.visState = $state.vis;
savedVis.uiStateJSON = angular.toJson($scope.uiState.getChanges());

Expand Down

0 comments on commit b93578d

Please sign in to comment.