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

@ -7,7 +7,6 @@
import { useGroups } from '@/stores/groups'
import { useAppSettingsStore } from '@/stores/appSettings'
import { useNotifyStore } from '@/stores/notify'
import { UseColorMode } from '@vueuse/components'
import VersionChecker from '@/components/VersionChecker.vue'
const $2fauth = inject('2fauth')
@ -186,21 +185,7 @@
</FormWrapper>
</div>
<VueFooter :showButtons="true">
<!-- Close button -->
<p class="control">
<UseColorMode v-slot="{ mode }">
<RouterLink
id="btnClose"
:to="{ name: returnTo }"
class="button is-rounded"
:class="{'is-dark' : mode === 'dark'}"
tabindex="0"
role="button"
:aria-label="$t('commons.close_the_x_page', {pagetitle: $route.meta.title})">
{{ $t('commons.close') }}
</RouterLink>
</UseColorMode>
</p>
<ButtonBackCloseCancel action="close" />
</VueFooter>
</div>
</template>