mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard_history: fix for scenario where reverted dashbord has different title and url must change not just route reload
This commit is contained in:
parent
64d620c987
commit
3ba8aeb9a7
@ -28,7 +28,7 @@ export class HistoryListCtrl {
|
||||
/** @ngInject */
|
||||
constructor(private $scope,
|
||||
private $rootScope,
|
||||
private $route,
|
||||
private $location,
|
||||
private $window,
|
||||
private $timeout,
|
||||
private $q,
|
||||
@ -178,7 +178,7 @@ export class HistoryListCtrl {
|
||||
restoreConfirm(version: number) {
|
||||
this.loading = true;
|
||||
return this.historySrv.restoreDashboard(this.dashboard, version).then(response => {
|
||||
this.$route.reload();
|
||||
this.$location.path('dashboard/db/' + response.slug);
|
||||
this.$rootScope.appEvent('alert-success', ['Dashboard restored', 'Restored from version ' + version]);
|
||||
}).catch(() => {
|
||||
this.mode = 'list';
|
||||
|
Loading…
Reference in New Issue
Block a user