Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/fileUploadStore.js')
-rw-r--r--src/store/fileUploadStore.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/store/fileUploadStore.js b/src/store/fileUploadStore.js
index 85acf4ef6..f094d9d2b 100644
--- a/src/store/fileUploadStore.js
+++ b/src/store/fileUploadStore.js
@@ -187,6 +187,10 @@ const mutations = {
}
}
},
+
+ discardUpload(state, uploadId) {
+ Vue.delete(state.uploads, uploadId)
+ },
}
const actions = {
@@ -211,6 +215,15 @@ const actions = {
},
/**
+ * Discards an upload
+ * @param {object} param0 Commit and state
+ * @param {object} uploadId The unique uploadId
+ */
+ discardUpload({ commit, state, getters }, uploadId) {
+ commit('discardUpload', { uploadId })
+ },
+
+ /**
* Uploads the files to the root directory of the user
* @param {object} param0 Commit, state and getters
* @param {object} uploadId The unique uploadId