Explorar el Código

ux(dashboard): when saving dashbord with default new dashboard title show Save As Dialog, #6099

Torkel Ödegaard hace 9 años
padre
commit
b45bd07032
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      public/app/features/dashboard/dashboard_srv.ts

+ 4 - 0
public/app/features/dashboard/dashboard_srv.ts

@@ -28,6 +28,10 @@ export class DashboardSrv {
       return Promise.resolve();
     }
 
+    if (this.dash.title === 'New dashboard') {
+      return this.saveDashboardAs();
+    }
+
     var clone = this.dash.getSaveModelClone();
 
     return this.backendSrv.saveDashboard(clone, options).then(data => {