increase folder item count after drag in file

This commit is contained in:
Čarodej
2022-05-10 07:09:28 +02:00
parent acfbbd56ca
commit b6cf1e2799
2 changed files with 3 additions and 1 deletions

View File

@@ -169,7 +169,7 @@ const FunctionHelpers = {
})
// Start uploading if uploading process isn't running
if (store.getters.filesInQueueTotal == 0) this.$handleUploading(store.getters.fileQueue[0])
if (store.getters.filesInQueueTotal === 0) this.$handleUploading(store.getters.fileQueue[0])
// Increase total files in upload bar
store.commit('INCREASE_FILES_IN_QUEUES_TOTAL', files.length)

View File

@@ -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')