ChoiceSetting support added, added captcha settings

This commit is contained in:
Henry Jameson 2023-03-20 23:36:47 +02:00
commit 0b5e536b4c
7 changed files with 121 additions and 13 deletions

View file

@ -13,7 +13,7 @@ export default {
},
props: {
path: {
type: String,
type: [String, Array],
required: true
},
disabled: {
@ -21,7 +21,7 @@ export default {
default: false
},
parentPath: {
type: String
type: [String, Array]
},
parentInvert: {
type: Boolean,
@ -68,6 +68,9 @@ export default {
backendDescriptionDescription () {
return this.backendDescription?.description
},
backendDescriptionSuggestions () {
return this.backendDescription?.suggestions
},
shouldBeDisabled () {
const parentValue = this.parentPath !== undefined ? get(this.configSource, this.parentPath) : null
return this.disabled || (parentValue !== null ? (this.parentInvert ? parentValue : !parentValue) : false)