Set Back/Close/Cancel buttons using a component

This commit is contained in:
Bubka
2023-11-03 13:20:40 +01:00
parent b9eb4f0afb
commit 929a513ad7
16 changed files with 104 additions and 133 deletions

View File

@@ -376,12 +376,7 @@
</span> -->
</button>
</p>
<!-- close button -->
<p class="control">
<UseColorMode v-slot="{ mode }">
<RouterLink :id="importableCount > 0 ? 'btnCancel' : 'btnClose'" :to="{ name: 'accounts' }" class="button is-rounded" :class="{'is-dark' : mode == 'dark'}" v-html="importableCount > 0 ? $t('commons.cancel') : $t('commons.close')"></RouterLink>
</UseColorMode>
</p>
<ButtonBackCloseCancel :action="importableCount > 0 ? 'cancel' : 'close'" />
</VueFooter>
</ResponsiveWidthWrapper>
<!-- modal -->