fix(unsaved changes): You now navigate to the intended page after saving in the unsaved changes dialog fixes #6675

This commit is contained in:
Torkel Ödegaard
2016-11-24 10:52:58 +01:00
parent 614bd7f1e8
commit d9cf6a958b
2 changed files with 9 additions and 1 deletions

View File

@@ -143,7 +143,14 @@ function(angular, _) {
};
modalScope.save = function() {
tracker.scope.$emit('save-dashboard');
var cancel = $rootScope.$on('dashboard-saved', function() {
cancel();
$timeout(function() {
tracker.goto_next();
});
});
$rootScope.$emit('save-dashboard');
};
$rootScope.appEvent('show-modal', {