Reset settings editor on settings import and reset
This commit is contained in:
parent
f77506c454
commit
7aacbec108
@ -213,6 +213,7 @@ export default {
|
|||||||
this.settings.active = newSettings;
|
this.settings.active = newSettings;
|
||||||
this.settings.saveWithoutReload();
|
this.settings.saveWithoutReload();
|
||||||
this.importSettingDialogConfig = {visible: false};
|
this.importSettingDialogConfig = {visible: false};
|
||||||
|
this.resetSettingsEditor();
|
||||||
},
|
},
|
||||||
reject: () => {
|
reject: () => {
|
||||||
this.importSettingDialogConfig = {visible: false};
|
this.importSettingDialogConfig = {visible: false};
|
||||||
@ -230,6 +231,7 @@ export default {
|
|||||||
resetSettings() {
|
resetSettings() {
|
||||||
this.settings.active = JSON.parse(JSON.stringify(this.settings.default));
|
this.settings.active = JSON.parse(JSON.stringify(this.settings.default));
|
||||||
this.settings.saveWithoutReload();
|
this.settings.saveWithoutReload();
|
||||||
|
this.resetSettingsEditor();
|
||||||
},
|
},
|
||||||
|
|
||||||
saveSettingsChanges() {
|
saveSettingsChanges() {
|
||||||
|
Loading…
Reference in New Issue
Block a user