mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(unsaved changes): You now navigate to the intended page after saving in the unsaved changes dialog fixes #6675
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user