Finish field setup

This commit is contained in:
rijkvanzanten
2020-07-24 12:53:03 -04:00
parent c8a0f4ece8
commit aeb4477da1
3 changed files with 29 additions and 3 deletions

View File

@@ -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 dont have any items in this collection. You can click the button below to add an item.",

View File

@@ -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 &&

View File

@@ -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>