|
|
@@ -100,7 +100,7 @@ export class DashboardSrv {
|
|
|
.catch(this.handleSaveDashboardError.bind(this, clone, options));
|
|
|
}
|
|
|
|
|
|
- saveDashboard(options, clone) {
|
|
|
+ saveDashboard(options?, clone?) {
|
|
|
if (clone) {
|
|
|
this.setCurrent(this.create(clone, this.dash.meta));
|
|
|
}
|
|
|
@@ -120,6 +120,10 @@ export class DashboardSrv {
|
|
|
return this.save(this.dash.getSaveModelClone(), options);
|
|
|
}
|
|
|
|
|
|
+ saveJSONDashboard(json: string) {
|
|
|
+ return this.save(JSON.parse(json), {});
|
|
|
+ }
|
|
|
+
|
|
|
showSaveAsModal() {
|
|
|
this.$rootScope.appEvent('show-modal', {
|
|
|
templateHtml: '<save-dashboard-as-modal dismiss="dismiss()"></save-dashboard-as-modal>',
|