mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
Merge branch 'master' into api
# Conflicts: # .env.testing # public/mix-manifest.json # src/Domain/RemoteUpload/Controllers/UploadFilesRemotelyForUploadRequestController.php
This commit is contained in:
4
resources/js/store/modules/fileFunctions.js
vendored
4
resources/js/store/modules/fileFunctions.js
vendored
@@ -114,7 +114,7 @@ const actions = {
|
||||
})
|
||||
.catch((error) => {
|
||||
events.$emit('alert:open', {
|
||||
title: error.response.data.message,
|
||||
title: error.response.data.message || i18n.t('popup_error.title'),
|
||||
message: i18n.t('popup_error.message'),
|
||||
})
|
||||
})
|
||||
@@ -179,6 +179,8 @@ const actions = {
|
||||
if (response.data.data.id) {
|
||||
commit('PROCESSING_FILE', false)
|
||||
|
||||
commit('INCREASE_FOLDER_ITEM', response.data.data.attributes.parent_id)
|
||||
|
||||
// Remove first file from file queue
|
||||
commit('SHIFT_FROM_FILE_QUEUE')
|
||||
|
||||
|
||||
8
resources/js/store/modules/userAuth.js
vendored
8
resources/js/store/modules/userAuth.js
vendored
@@ -32,7 +32,7 @@ const actions = {
|
||||
})
|
||||
})
|
||||
},
|
||||
logOut: ({ commit }) => {
|
||||
logOut: ({ commit, getters }) => {
|
||||
|
||||
let popup = setTimeout(() => {
|
||||
commit('PROCESSING_POPUP', {
|
||||
@@ -50,7 +50,11 @@ const actions = {
|
||||
commit('DESTROY_DATA')
|
||||
commit('SET_AUTHORIZED', false)
|
||||
|
||||
router.push({name: 'Homepage'})
|
||||
// Get redirect location
|
||||
let redirectLocation = getters.config.allowHomepage ? 'Homepage' : 'SignIn'
|
||||
|
||||
// Redirect user
|
||||
router.push({name: redirectLocation})
|
||||
})
|
||||
},
|
||||
socialiteRedirect: ({ commit }, provider) => {
|
||||
|
||||
Reference in New Issue
Block a user