2020-02-12 21:18:40 +01:00
|
|
|
|
<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>
|
2022-07-21 15:46:55 +02:00
|
|
|
|
<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>
|
2020-10-03 19:30:52 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div v-else class="content has-text-centered">
|
2022-06-24 09:10:49 +02:00
|
|
|
|
<router-link id="lnkSettings" :to="{ name: 'settings.options' }" class="has-text-grey">{{ $t('settings.settings') }}</router-link>
|
2022-05-16 22:55:50 +02:00
|
|
|
|
<span v-if="!this.$root.appConfig.proxyAuth || (this.$root.appConfig.proxyAuth && this.$root.appConfig.proxyLogoutUrl)">
|
2022-09-21 21:38:53 +02:00
|
|
|
|
- <button id="lnkSignOut" class="button is-text is-like-text has-text-grey" @click="logout">{{ $t('auth.sign_out') }}</button>
|
2022-05-16 22:55:50 +02:00
|
|
|
|
</span>
|
2020-02-12 21:18:40 +01:00
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: 'VueFooter',
|
|
|
|
|
|
|
|
|
|
data(){
|
|
|
|
|
return {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
showButtons: true,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
2020-10-08 14:48:18 +02:00
|
|
|
|
logout() {
|
2020-02-12 21:18:40 +01:00
|
|
|
|
if(confirm(this.$t('auth.confirm.logout'))) {
|
|
|
|
|
|
2020-10-08 14:48:18 +02:00
|
|
|
|
this.appLogout()
|
2020-02-12 21:18:40 +01:00
|
|
|
|
}
|
2020-10-08 14:48:18 +02:00
|
|
|
|
}
|
2020-02-12 21:18:40 +01:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|