mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(dashboard): when saving dashbord with default new dashboard title show Save As Dialog, #6099
This commit is contained in:
@@ -28,6 +28,10 @@ export class DashboardSrv {
|
|||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.dash.title === 'New dashboard') {
|
||||||
|
return this.saveDashboardAs();
|
||||||
|
}
|
||||||
|
|
||||||
var clone = this.dash.getSaveModelClone();
|
var clone = this.dash.getSaveModelClone();
|
||||||
|
|
||||||
return this.backendSrv.saveDashboard(clone, options).then(data => {
|
return this.backendSrv.saveDashboard(clone, options).then(data => {
|
||||||
|
|||||||
Reference in New Issue
Block a user