From d7d0f69a5888e8675349731b1936adede635002a Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 12 Mar 2020 00:49:24 +0100 Subject: [PATCH] Update logger settings from JsonEditor --- src/csui/LoggerUi.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/csui/LoggerUi.vue b/src/csui/LoggerUi.vue index 5476d52..2bb465f 100644 --- a/src/csui/LoggerUi.vue +++ b/src/csui/LoggerUi.vue @@ -55,7 +55,7 @@
- +
@@ -212,6 +212,15 @@ export default { 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() { this.getLoggerSettings(); this.confHasError = false;