setup wizard debug

This commit is contained in:
Čarodej
2022-03-13 18:30:03 +01:00
parent 2bba6dc051
commit 5e48af22a2
100 changed files with 308 additions and 300 deletions

View File

@@ -20,7 +20,7 @@ const actions = {
commit('RETRIEVE_USER', response.data)
commit('UPDATE_NOTIFICATION_COUNT', response.data.data.relationships.unreadNotifications.data.length)
if (! getters.isRunningConnection) {
if (! getters.isRunningConnection && getters.config.broadcasting === 'pusher') {
dispatch('runConnection')
}
})
@@ -35,6 +35,7 @@ const actions = {
})
},
logOut: ({ commit }) => {
let popup = setTimeout(() => {
commit('PROCESSING_POPUP', {
title: 'Logging Out',
@@ -44,7 +45,8 @@ const actions = {
axios
.post('/logout')
.then(() => {
.catch(() => this.$isSomethingWrong())
.finally(() => {
clearTimeout(popup)
commit('DESTROY_DATA')
@@ -52,16 +54,6 @@ const actions = {
router.push({name: 'Homepage'})
})
.catch((error) => {
if (error.response.status === 419) {
clearTimeout(popup)
commit('DESTROY_DATA')
commit('SET_AUTHORIZED', false)
router.push({name: 'Homepage'})
}
})
},
socialiteRedirect: ({ commit }, provider) => {
axios
@@ -141,7 +133,11 @@ const mutations = {
state.permission = role
},
DESTROY_DATA(state) {
state.currentFolder = undefined
state.user = undefined
state.app = undefined
state.clipboard = []
},
ADD_TO_FAVOURITES(state, folder) {
folder.forEach((item) => {