mirror of
https://github.com/directus/directus.git
synced 2026-02-10 09:05:41 -05:00
When editing, all panes show “Save”
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{{ $t('cancel') }}
|
||||
</v-button>
|
||||
<div class="spacer" />
|
||||
<v-button v-if="currentTabIndex < tabs.length - 1" @click="nextTab" :disabled="nextDisabled">
|
||||
<v-button v-if="!isExisting && currentTabIndex < tabs.length - 1" @click="nextTab" :disabled="nextDisabled">
|
||||
{{ $t('next') }}
|
||||
</v-button>
|
||||
<v-button v-else @click="$emit('save')" :loading="saving">
|
||||
@@ -41,6 +41,10 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
isExisting: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
const _currentTab = useSync(props, 'current', emit);
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
:collection="collection"
|
||||
:current.sync="currentTab"
|
||||
:tabs="tabs"
|
||||
:is-existing="field !== '+'"
|
||||
@save="saveField"
|
||||
@cancel="cancelField"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user