|
@@ -73,9 +73,8 @@ export class DashboardSrv {
|
|
|
postSave(clone, data) {
|
|
postSave(clone, data) {
|
|
|
this.dash.version = data.version;
|
|
this.dash.version = data.version;
|
|
|
|
|
|
|
|
- var dashboardUrl = '/dashboard/db/' + data.slug;
|
|
|
|
|
- if (dashboardUrl !== this.$location.path()) {
|
|
|
|
|
- this.$location.url(dashboardUrl);
|
|
|
|
|
|
|
+ if (data.url !== this.$location.path()) {
|
|
|
|
|
+ this.$location.url(data.url);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.$rootScope.appEvent('dashboard-saved', this.dash);
|
|
this.$rootScope.appEvent('dashboard-saved', this.dash);
|