Logging out progressbar

This commit is contained in:
Peter Papp
2021-02-06 14:18:53 +01:00
parent 9c92cffde3
commit e2a52d27f5
5 changed files with 25 additions and 14 deletions

View File

@@ -39,11 +39,18 @@ const actions = {
})
},
logOut: ({getters, commit}) => {
let popup = setTimeout(() => {
commit('PROCESSING_POPUP', {
title: 'Logging Out',
message: 'Wait a second...',
})
}, 300)
axios
.get(getters.api + '/logout')
.then(() => {
// Commit Remove Access Token from vuex storage
clearTimeout(popup)
commit('DESTROY_DATA')
router.push({name: 'SignIn'})