Просмотр исходного кода

dashboards: ensure that uid is returned from getSaveModelClone

Without this the uid will not be sent to the backend when saving a
dashboard.
#7883
Marcus Efraimsson 8 лет назад
Родитель
Сommit
6ab526881a
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      public/app/features/dashboard/dashboard_model.ts

+ 2 - 0
public/app/features/dashboard/dashboard_model.ts

@@ -12,6 +12,7 @@ import { DashboardMigrator } from './dashboard_migration';
 
 export class DashboardModel {
   id: any;
+  uid: any;
   title: any;
   autoUpdate: any;
   description: any;
@@ -56,6 +57,7 @@ export class DashboardModel {
 
     this.events = new Emitter();
     this.id = data.id || null;
+    this.uid = data.uid || null;
     this.revision = data.revision;
     this.title = data.title || 'No Title';
     this.autoUpdate = data.autoUpdate;