Browse Source
Merge pull request #3936 from nextcloud/bugfix/noid/fix-bug-in-the-upload-store
Fix wrong argument in the upload store
pull/3940/head
marco
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/store/fileUploadStore.js
|
|
|
@ -75,7 +75,7 @@ const mutations = { |
|
|
|
Vue.set(state.uploads[uploadId].files, Object.keys(state.uploads[uploadId].files).length, { file, status: 'toBeUploaded' }) |
|
|
|
}, |
|
|
|
|
|
|
|
// Marks a given file as failed uplosd
|
|
|
|
// Marks a given file as failed upload
|
|
|
|
markFileAsFailedUpload(state, { uploadId, index }) { |
|
|
|
state.uploads[uploadId].files[index].status = 'failedUpload' |
|
|
|
}, |
|
|
|
@ -147,7 +147,7 @@ const actions = { |
|
|
|
console.debug('Error while uploading file:' + exception) |
|
|
|
showError(t('spreed', 'Error while uploading file')) |
|
|
|
// Mark the upload as failed in the store
|
|
|
|
commit('markFileAsFailedUpload', { token, index }) |
|
|
|
commit('markFileAsFailedUpload', { uploadId, index }) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|