mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
upload file into request folder and get their thumbnails
This commit is contained in:
7
resources/js/store/modules/fileFunctions.js
vendored
7
resources/js/store/modules/fileFunctions.js
vendored
@@ -169,7 +169,7 @@ const actions = {
|
||||
if (percentCompleted >= 100) commit('PROCESSING_FILE', true)
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
.then(async (response) => {
|
||||
resolve(response)
|
||||
|
||||
// Proceed if was returned database record
|
||||
@@ -179,6 +179,11 @@ const actions = {
|
||||
// Remove first file from file queue
|
||||
commit('SHIFT_FROM_FILE_QUEUE')
|
||||
|
||||
// Refresh request detail to update currentFolder in Vuex
|
||||
if (router.currentRoute.name === 'RequestUpload' && !getters.currentFolder) {
|
||||
await dispatch('getUploadRequestDetail')
|
||||
}
|
||||
|
||||
// Check if user is in uploading folder, if yes, than show new file
|
||||
if (
|
||||
(!getters.currentFolder && !response.data.data.attributes.parent_id) ||
|
||||
|
||||
Reference in New Issue
Block a user