mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Make dashboard JSON editable
This commit is contained in:
@@ -134,7 +134,13 @@ export class SettingsCtrl {
|
||||
}
|
||||
|
||||
saveDashboard() {
|
||||
this.dashboardSrv.saveDashboard();
|
||||
if (this.viewId === 'view_json') {
|
||||
this.dashboardSrv.saveJSONDashboard(this.json).then(() => {
|
||||
window.location.reload();
|
||||
});
|
||||
} else {
|
||||
this.dashboardSrv.saveDashboard();
|
||||
}
|
||||
}
|
||||
|
||||
onPostSave() {
|
||||
|
||||
Reference in New Issue
Block a user