Default default default value placeholder to "NULL"

This commit is contained in:
rijkvanzanten
2021-02-15 14:05:38 -05:00
parent b88150c29d
commit 4ec0c1fa5f
2 changed files with 5 additions and 6 deletions

View File

@@ -165,7 +165,6 @@ choose_a_type: Choose a Type...
determined_by_relationship: Determined by Relationship
add_note: Add a helpful note for users...
default_value: Default Value
add_a_default_value: Add a default value...
interface_setup_title: How will users interact with this field?
display_setup_title: How should this fields value be displayed?
standard_field: Standard Field

View File

@@ -89,26 +89,26 @@
v-if="['string', 'uuid'].includes(fieldData.type)"
class="monospace"
v-model="defaultValue"
:placeholder="$t('add_a_default_value')"
placeholder="NULL"
/>
<v-textarea
v-else-if="['text', 'json'].includes(fieldData.type)"
class="monospace"
v-model="defaultValue"
:placeholder="$t('add_a_default_value')"
placeholder="NULL"
/>
<v-input
v-else-if="['integer', 'bigInteger', 'float', 'decimal'].includes(fieldData.type)"
type="number"
class="monospace"
v-model="defaultValue"
:placeholder="$t('add_a_default_value')"
placeholder="NULL"
/>
<v-input
v-else-if="['timestamp', 'datetime', 'date', 'time'].includes(fieldData.type)"
class="monospace"
v-model="defaultValue"
:placeholder="$t('add_a_default_value')"
placeholder="NULL"
/>
<v-select
v-else-if="fieldData.type === 'boolean'"
@@ -129,7 +129,7 @@
},
]"
/>
<v-input v-else class="monospace" v-model="defaultValue" disabled :placeholder="$t('add_a_default_value')" />
<v-input v-else class="monospace" v-model="defaultValue" disabled placeholder="NULL" />
</div>
<div class="field half-left" v-if="fieldData.schema">