mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
44 lines
956 B
Vue
44 lines
956 B
Vue
<template>
|
|
<FormGroup>
|
|
<Checkbox
|
|
v-model="values.boolean_default"
|
|
:disabled="isDefaultValueFieldDisabled"
|
|
>
|
|
{{ $t('fieldBooleanSubForm.defaultValue') }}
|
|
</Checkbox>
|
|
<div
|
|
v-if="isDefaultValueFieldDisabled"
|
|
class="control__messages padding-top-0"
|
|
>
|
|
<p
|
|
class="control__helper-text control__helper-text--warning field-context__inner-element-width"
|
|
>
|
|
{{ $t('fieldForm.defaultValueDisabledByConstraint') }}
|
|
</p>
|
|
</div>
|
|
</FormGroup>
|
|
</template>
|
|
|
|
<script>
|
|
import form from '@baserow/modules/core/mixins/form'
|
|
import fieldSubForm from '@baserow/modules/database/mixins/fieldSubForm'
|
|
|
|
export default {
|
|
name: 'FieldBooleanSubForm',
|
|
mixins: [form, fieldSubForm],
|
|
data() {
|
|
return {
|
|
allowedValues: ['boolean_default'],
|
|
values: {
|
|
boolean_default: false,
|
|
},
|
|
}
|
|
},
|
|
methods: {
|
|
isFormValid() {
|
|
return true
|
|
},
|
|
},
|
|
}
|
|
</script>
|