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>
|
2020-10-03 19:30:52 +02:00
|
|
|
<div v-if="$route.name === 'settings'" class="content has-text-centered is-size-6">
|
2020-10-08 14:48:18 +02:00
|
|
|
<a class="has-text-grey" href="https://github.com/Bubka/2FAuth"><b>2FAuth</b> <font-awesome-icon :icon="['fab', 'github-alt']" /></a> - v{{ appVersion }}
|
2020-10-03 19:30:52 +02:00
|
|
|
</div>
|
|
|
|
<div v-else class="content has-text-centered">
|
2020-03-09 20:24:25 +01:00
|
|
|
<router-link :to="{ name: 'settings' }" class="has-text-grey">{{ $t('settings.settings') }}</router-link> - <a class="has-text-grey" @click="logout">{{ $t('auth.sign_out') }}</a>
|
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>
|