fixes for diabled state, tri-state boolean and access control
This commit is contained in:
parent
2bf224e214
commit
6992439c92
7 changed files with 115 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue