Fix reactivity of new-collection action buttons

This commit is contained in:
rijkvanzanten
2021-06-03 17:32:27 -04:00
parent 2270d870f9
commit 4e02bdb94c

View File

@@ -101,26 +101,29 @@
</v-tabs-items>
<template #actions>
<v-button
:disabled="!collectionName || collectionName.length === 0"
v-if="currentTab[0] === 'collection_setup'"
@click="currentTab = ['optional_system_fields']"
v-tooltip.bottom="$t('next')"
icon
rounded
>
<v-icon name="arrow_forward" />
</v-button>
<v-button
v-if="currentTab[0] === 'optional_system_fields'"
@click="save"
:loading="saving"
v-tooltip.bottom="$t('finish_setup')"
icon
rounded
>
<v-icon name="check" />
</v-button>
<div>
<v-button
:disabled="!collectionName || collectionName.length === 0"
v-if="currentTab[0] === 'collection_setup'"
@click="currentTab = ['optional_system_fields']"
v-tooltip.bottom="$t('next')"
icon
rounded
>
<v-icon name="arrow_forward" />
</v-button>
<v-button
v-if="currentTab[0] === 'optional_system_fields'"
@click="save"
:loading="saving"
v-tooltip.bottom="$t('finish_setup')"
icon
rounded
>
<v-icon name="check" />
</v-button>
</div>
</template>
</v-drawer>
</template>