Update logger settings from JsonEditor
This commit is contained in:
parent
217206ca1e
commit
d7d0f69a58
@ -55,7 +55,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="settings-panel flex flex-noshrink flex-column">
|
<div class="settings-panel flex flex-noshrink flex-column">
|
||||||
<JsonObject :value="currentSettings" key="logger-settings"></JsonObject>
|
<JsonObject :value="currentSettings" label="logger-settings" @change="updateSettingsUi"></JsonObject>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- LOGGER OUTPUT/START LOGGING -->
|
<!-- LOGGER OUTPUT/START LOGGING -->
|
||||||
@ -212,6 +212,15 @@ export default {
|
|||||||
this.confHasError = true;
|
this.confHasError = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
updateSettingsUi(val) {
|
||||||
|
try {
|
||||||
|
this.parsedSettings = JSON.stringify(val, null, 2);
|
||||||
|
this.lastSettings = val;
|
||||||
|
this.currentSettings = JSON.parse(JSON.stringify(this.lastSettings));
|
||||||
|
} catch (e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
restoreLoggerSettings() {
|
restoreLoggerSettings() {
|
||||||
this.getLoggerSettings();
|
this.getLoggerSettings();
|
||||||
this.confHasError = false;
|
this.confHasError = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user