mirror of
https://github.com/directus/directus.git
synced 2026-02-02 17:04:56 -05:00
Finish field setup
This commit is contained in:
@@ -300,7 +300,11 @@
|
||||
"report_bug": "Report Bug",
|
||||
"request_feature": "Request Feature",
|
||||
|
||||
"interface_not_found": "Interface \"{interface}\" not found",
|
||||
"interface_not_found": "Interface \"{interface}\" not found.",
|
||||
"reset_interface": "Reset Interface",
|
||||
|
||||
"display_not_found": "Display \"{display}\" not found.",
|
||||
"reset_display": "Reset Display",
|
||||
|
||||
"item_count": "No Items | One Item | {count} Items",
|
||||
"no_items_copy": "It looks like you don’t have any items in this collection. You can click the button below to add an item.",
|
||||
|
||||
@@ -4,7 +4,13 @@
|
||||
|
||||
<v-fancy-select class="select" :items="selectItems" v-model="fieldData.system.display" />
|
||||
|
||||
<template v-if="fieldData.system.display">
|
||||
<v-notice class="not-found" type="danger" v-if="fieldData.system.display && !selectedDisplay">
|
||||
{{ $t('display_not_found', { display: fieldData.system.display }) }}
|
||||
<div class="spacer" />
|
||||
<button @click="fieldData.system.display = null">{{ $t('reset_display') }}</button>
|
||||
</v-notice>
|
||||
|
||||
<template v-if="fieldData.system.display && !selectedDisplay">
|
||||
<v-form
|
||||
v-if="
|
||||
selectedDisplay.options &&
|
||||
|
||||
@@ -4,7 +4,13 @@
|
||||
|
||||
<v-fancy-select class="select" :items="selectItems" v-model="fieldData.system.interface" />
|
||||
|
||||
<template v-if="fieldData.system.interface">
|
||||
<v-notice class="not-found" type="danger" v-if="fieldData.system.interface && !selectedInterface">
|
||||
{{ $t('interface_not_found', { interface: fieldData.system.interface }) }}
|
||||
<div class="spacer" />
|
||||
<button @click="fieldData.system.interface = null">{{ $t('reset_interface') }}</button>
|
||||
</v-notice>
|
||||
|
||||
<template v-if="fieldData.system.interface && selectedInterface">
|
||||
<v-form
|
||||
v-if="
|
||||
selectedInterface.options &&
|
||||
@@ -78,4 +84,14 @@ export default defineComponent({
|
||||
.select {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.not-found {
|
||||
.spacer {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
button {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user