refactor: minor refactoring of PR #10236

This commit is contained in:
Torkel Ödegaard
2017-12-27 09:48:34 +01:00
parent 77843623b2
commit c8f87a3d09
2 changed files with 3 additions and 9 deletions

View File

@@ -69,8 +69,8 @@ export class SettingsCtrl {
if (this.dashboard.meta.canMakeEditable) {
this.sections.push({
title: 'Make Editable',
icon: 'fa fa-fw fa-edit',
title: 'General',
icon: 'gicon gicon-preferences',
id: 'make_editable',
});
}
@@ -137,12 +137,6 @@ export class SettingsCtrl {
const currentSection = _.find(this.sections, { id: this.viewId });
this.$location.url(currentSection.url);
this.onRouteUpdated();
// Force dashboard reload after saving to update view
appEvents.on('dashboard-saved', () => {
window.location.href = window.location.href;
});
}
deleteDashboard() {