Rename the nullable text input interface option (#5057)

* Rename the nullable text input interface option

* Update app/src/lang/translations/en-US.yaml

* Update app/src/lang/translations/en-US.yaml

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
Nicola Krumschmidt
2021-04-15 00:33:27 +02:00
committed by GitHub
parent 726420576b
commit 24202531fe
3 changed files with 9 additions and 9 deletions

View File

@@ -88,18 +88,18 @@ export default defineInterface({
},
},
{
field: 'nullable',
name: '$t:interfaces.text-input.nullable',
field: 'clear',
name: '$t:interfaces.text-input.clear',
type: 'boolean',
meta: {
width: 'half',
interface: 'toggle',
options: {
label: '$t:interfaces.text-input.nullable_label',
label: '$t:interfaces.text-input.clear_label',
},
},
schema: {
default_value: true,
default_value: false,
},
},
],

View File

@@ -1,7 +1,7 @@
<template>
<v-input
:value="value"
:nullable="nullable"
:nullable="!clear"
:placeholder="placeholder"
:disabled="disabled"
:trim="trim"
@@ -40,9 +40,9 @@ export default defineComponent({
type: String,
default: null,
},
nullable: {
clear: {
type: Boolean,
default: true,
default: false,
},
disabled: {
type: Boolean,

View File

@@ -994,8 +994,8 @@ interfaces:
trim_label: Trim the start and end
mask: Masked
mask_label: Hide the real value
nullable: Nullable
nullable_label: Save empty value as NULL
clear: Cleared Value
clear_label: Save as empty string
textarea:
textarea: Textarea
description: Enter multiline plain-text