Merge pull request #7185 from epixa/fix-visstate-title

Adds title to visState before the visualization is saved
This commit is contained in:
Khalah Jones Golden 2016-05-12 14:18:38 -04:00
commit b93578d8f9

View file

@ -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());