mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
rename option to collectionField
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user