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

This commit is contained in:
Torkel Ödegaard
2016-10-25 11:11:21 +02:00
parent 556547b316
commit b45bd07032

View File

@@ -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 => {