mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-11 09:40:43 +01:00
47 lines
1.5 KiB
Vue
47 lines
1.5 KiB
Vue
<template>
|
||
<footer class="has-background-black-ter">
|
||
<div class="columns is-gapless" v-if="showButtons">
|
||
<div class="column has-text-centered">
|
||
<div class="field is-grouped">
|
||
<slot></slot>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div v-if="$route.meta.showAbout === true" class="content has-text-centered is-size-6">
|
||
<router-link :to="{ name: 'about' }" class="has-text-grey">
|
||
2FAuth – <span class="has-text-weight-bold">v{{ appVersion }}</span>
|
||
</router-link>
|
||
</div>
|
||
<div v-else class="content has-text-centered">
|
||
<router-link id="lnkSettings" :to="{ name: 'settings.options' }" class="has-text-grey">{{ $t('settings.settings') }}</router-link>
|
||
<span v-if="!this.$root.appConfig.proxyAuth || (this.$root.appConfig.proxyAuth && this.$root.appConfig.proxyLogoutUrl)">
|
||
- <a id="lnkSignOut" class="has-text-grey" @click="logout">{{ $t('auth.sign_out') }}</a>
|
||
</span>
|
||
</div>
|
||
</footer>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
name: 'VueFooter',
|
||
|
||
data(){
|
||
return {
|
||
}
|
||
},
|
||
|
||
props: {
|
||
showButtons: true,
|
||
},
|
||
|
||
methods: {
|
||
logout() {
|
||
if(confirm(this.$t('auth.confirm.logout'))) {
|
||
|
||
this.appLogout()
|
||
}
|
||
}
|
||
}
|
||
};
|
||
</script>
|