aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/helpers/setting.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2023-03-22 00:00:52 +0200
committerHenry Jameson <me@hjkos.com>2023-03-22 00:00:52 +0200
commit6992439c92c247bf5b48155a76ff4e39a57b0ec7 (patch)
tree49b3318cea1f209c200ec85342ddb8558c844d35 /src/components/settings_modal/helpers/setting.js
parent2bf224e214d9b42333a2139a89c089ca9a544149 (diff)
fixes for diabled state, tri-state boolean and access control
Diffstat (limited to 'src/components/settings_modal/helpers/setting.js')
-rw-r--r--src/components/settings_modal/helpers/setting.js4
1 files changed, 3 insertions, 1 deletions
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