Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7d642546
Commit
7d642546
authored
Jun 13, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: restore dashboard history version did not reload route correctly when slug did not change
parent
6992b484
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
public/app/features/dashboard/history/history.ts
+2
-0
No files found.
public/app/features/dashboard/history/history.ts
View file @
7d642546
...
@@ -27,6 +27,7 @@ export class HistoryListCtrl {
...
@@ -27,6 +27,7 @@ export class HistoryListCtrl {
/** @ngInject */
/** @ngInject */
constructor
(
private
$scope
,
constructor
(
private
$scope
,
private
$route
,
private
$rootScope
,
private
$rootScope
,
private
$location
,
private
$location
,
private
$window
,
private
$window
,
...
@@ -179,6 +180,7 @@ export class HistoryListCtrl {
...
@@ -179,6 +180,7 @@ export class HistoryListCtrl {
this
.
loading
=
true
;
this
.
loading
=
true
;
return
this
.
historySrv
.
restoreDashboard
(
this
.
dashboard
,
version
).
then
(
response
=>
{
return
this
.
historySrv
.
restoreDashboard
(
this
.
dashboard
,
version
).
then
(
response
=>
{
this
.
$location
.
path
(
'dashboard/db/'
+
response
.
slug
);
this
.
$location
.
path
(
'dashboard/db/'
+
response
.
slug
);
this
.
$route
.
reload
();
this
.
$rootScope
.
appEvent
(
'alert-success'
,
[
'Dashboard restored'
,
'Restored from version '
+
version
]);
this
.
$rootScope
.
appEvent
(
'alert-success'
,
[
'Dashboard restored'
,
'Restored from version '
+
version
]);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
mode
=
'list'
;
this
.
mode
=
'list'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment