Sfoglia il codice sorgente

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 anni fa
parent
commit
6ab526881a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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 {
 export class DashboardModel {
   id: any;
   id: any;
+  uid: any;
   title: any;
   title: any;
   autoUpdate: any;
   autoUpdate: any;
   description: any;
   description: any;
@@ -56,6 +57,7 @@ export class DashboardModel {
 
 
     this.events = new Emitter();
     this.events = new Emitter();
     this.id = data.id || null;
     this.id = data.id || null;
+    this.uid = data.uid || null;
     this.revision = data.revision;
     this.revision = data.revision;
     this.title = data.title || 'No Title';
     this.title = data.title || 'No Title';
     this.autoUpdate = data.autoUpdate;
     this.autoUpdate = data.autoUpdate;