Newer
Older
</div>
<div class="center">
<b-container class="msg">
<p>
<b-button type="button" variant="outline-primary" data-test="signOut-signIn" @click.prevent="$router.push({ name: 'SignIn' })">
</b-button>
</b-container>
</div>
<small class="footer">
<p>{{ $t('footer') }} <a href="https://www.neogeo.fr/" target="_blank" rel="noopener">Neogeo-Technologies</a></p>
</small>
</div>
</template>
<script>
import { mapState, mapActions } from 'vuex';
export default {
name: 'SignOut',
data: () => {
return { };
},
computed: {
...mapState('sign-out', [
'logged',
'error'
]),
logoPath() {
return require(process.env.VUE_APP_LOGO);
}
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
},
beforeRouteEnter(to, from, next) {
next((vm) => {
vm.GET_SIGNOUT().then(() => {
if (vm.logged) {
vm.$router.push({ name: 'SignOutFailed' })
}
})
});
},
methods: {
...mapActions('sign-out', [
'GET_SIGNOUT'
])
}
};
</script>
<style lang="less" scoped>
.center {
position: initial;
}
.center .msg.container {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.center .msg.container,
.center .msg.container button {
font-size: large;
}
.footer {
position: absolute;
bottom: 0;
font-size: small;
}
.footer a {
text-decoration: none;
}
</style>