瀏覽代碼

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

Torkel Ödegaard 9 年之前
父節點
當前提交
b45bd07032
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 => {