mirror of
https://github.com/directus/directus.git
synced 2026-02-02 01:25:00 -05:00
Add disabled prop to InterfaceToggle (#5085)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
:label="label"
|
||||
:input-value="value"
|
||||
:indeterminate="value === null"
|
||||
:disabled="disabled"
|
||||
@change="$listeners.input"
|
||||
:style="{
|
||||
'--v-checkbox-color': color,
|
||||
@@ -23,6 +24,10 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: null,
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
default: i18n.t('enabled'),
|
||||
|
||||
Reference in New Issue
Block a user