From 6992439c92c247bf5b48155a76ff4e39a57b0ec7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 22 Mar 2023 00:00:52 +0200 Subject: fixes for diabled state, tri-state boolean and access control --- src/components/settings_modal/helpers/setting.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/settings_modal/helpers/setting.js') diff --git a/src/components/settings_modal/helpers/setting.js b/src/components/settings_modal/helpers/setting.js index 7cad27b7..d42ae763 100644 --- a/src/components/settings_modal/helpers/setting.js +++ b/src/components/settings_modal/helpers/setting.js @@ -65,6 +65,9 @@ export default { return value } }, + visibleState () { + return this.realDraftMode ? this.draft : this.state + }, realSource () { return this.source || this.defaultSource }, @@ -88,7 +91,6 @@ export default { return this.disabled || (parentValue !== null ? (this.parentInvert ? parentValue : !parentValue) : false) }, configSource () { - console.log('SRC', this.realSource) switch (this.realSource) { case 'profile': return this.$store.state.profileConfig -- cgit v1.2.3-70-g09d2