fix(unsaved changes): You now navigate to the intended page after saving in the unsaved changes dialog fixes #6675
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
### Bugfixes
|
### Bugfixes
|
||||||
* **Server-side rendering**: Fixed address used when rendering panel via phantomjs and using non default http_addr config [#6660](https://github.com/grafana/grafana/issues/6660)
|
* **Server-side rendering**: Fixed address used when rendering panel via phantomjs and using non default http_addr config [#6660](https://github.com/grafana/grafana/issues/6660)
|
||||||
* **Graph panel**: Fixed graph panel tooltip sort order issue [#6648](https://github.com/grafana/grafana/issues/6648)
|
* **Graph panel**: Fixed graph panel tooltip sort order issue [#6648](https://github.com/grafana/grafana/issues/6648)
|
||||||
|
* **Unsaved changes**: You now navigate to the intended page after saving in the unsaved changes dialog [#6675](https://github.com/grafana/grafana/issues/6675)
|
||||||
|
|
||||||
# 4.0-beta2 (2016-11-21)
|
# 4.0-beta2 (2016-11-21)
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,14 @@ function(angular, _) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
modalScope.save = function() {
|
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', {
|
$rootScope.appEvent('show-modal', {
|
||||||
|
|||||||
Reference in New Issue
Block a user