mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 00:42:16 +00:00
upload progressbar UI
This commit is contained in:
9
resources/js/store/modules/fileFunctions.js
vendored
9
resources/js/store/modules/fileFunctions.js
vendored
@@ -7,6 +7,7 @@ import Vue from 'vue'
|
||||
|
||||
const defaultState = {
|
||||
processingPopup: undefined,
|
||||
filesQueue: [],
|
||||
}
|
||||
|
||||
const actions = {
|
||||
@@ -197,6 +198,8 @@ const actions = {
|
||||
if (response.data.folder_id == getters.currentFolder.unique_id)
|
||||
commit('ADD_NEW_ITEMS', response.data)
|
||||
|
||||
// TODO: handle new uploads if exist
|
||||
|
||||
resolve(response)
|
||||
})
|
||||
.catch(error => {
|
||||
@@ -384,11 +387,15 @@ const actions = {
|
||||
const mutations = {
|
||||
PROCESSING_POPUP(state, status) {
|
||||
state.processingPopup = status
|
||||
},
|
||||
ADD_FILES_TO_QUEUE(state, file) {
|
||||
state.filesQueue.push(file)
|
||||
}
|
||||
}
|
||||
|
||||
const getters = {
|
||||
processingPopup: state => state.processingPopup
|
||||
processingPopup: state => state.processingPopup,
|
||||
filesQueue: state => state.filesQueue,
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user