rename option to collectionField

This commit is contained in:
Nitwel
2020-09-09 19:52:34 +02:00
parent 69036d6ffd
commit 74ec51e4ad
3 changed files with 6 additions and 8 deletions

View File

@@ -11,15 +11,12 @@ export default defineInterface(({ i18n }) => ({
system: true,
options: [
{
field: 'collection',
name: i18n.t('collection'),
field: 'collectionField',
name: i18n.t('interfaces.display-template.collection_field'),
type: 'string',
meta: {
width: 'half',
interface: 'collections',
options: {
includeSystem: true,
},
width: 'full',
interface: 'text-input'
},
schema: {
default_value: null,

View File

@@ -33,6 +33,7 @@
"display-template": {
"display-template": "Display Template",
"description": "Mix text with field values.",
"collection_field": "Collection field",
"collection_field_not_setup": "The collection field option is misconfigured",
"select_a_collection": "Select a Collection"
},

View File

@@ -40,7 +40,7 @@
</div>
<!-- @todo base default value field type on selected type -->
<div class="field" v-if="fieldData.schema" :class="{ full: ['text', 'json'].includes(default_type) }">
<div class="field" v-if="fieldData.schema" :class="{ full: ['text', 'json'].includes(fieldData.type) }">
<div class="label type-label">{{ $t('default_value') }}</div>
<v-input
v-if="['string', 'uuid'].includes(fieldData.type)"