diff options
Diffstat (limited to 'src/store/fileUploadStore.js')
-rw-r--r-- | src/store/fileUploadStore.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/store/fileUploadStore.js b/src/store/fileUploadStore.js index de0b5f5e6..8086bb0be 100644 --- a/src/store/fileUploadStore.js +++ b/src/store/fileUploadStore.js @@ -35,7 +35,6 @@ const state = { uploads: { }, currentUploadId: undefined, - showUploadEditor: false, } const getters = { @@ -93,10 +92,6 @@ const getters = { currentUploadId: (state) => { return state.currentUploadId }, - - showUploadEditor: (state) => { - return state.showUploadEditor - }, } const mutations = { @@ -174,11 +169,6 @@ const mutations = { state.currentUploadId = currentUploadId }, - // Shows hides the upload editor - showUploadEditor(state, show) { - state.showUploadEditor = show - }, - removeFileFromSelection(state, fileId) { const uploadId = state.currentUploadId for (const key in state.uploads[uploadId].files) { @@ -198,8 +188,6 @@ const actions = { initialiseUpload({ commit, dispatch }, { uploadId, token, files }) { // Set last upload id commit('setCurrentUploadId', uploadId) - // Show upload editor - commit('showUploadEditor', true) files.forEach(file => { // Get localurl for previews @@ -222,7 +210,6 @@ const actions = { discardUpload({ commit, state, getters }, uploadId) { if (state.currentUploadId === uploadId) { commit('setCurrentUploadId', undefined) - commit('showUploadEditor', false) } commit('discardUpload', { uploadId }) @@ -236,7 +223,6 @@ const actions = { async uploadFiles({ commit, dispatch, state, getters }, uploadId) { if (state.currentUploadId === uploadId) { commit('setCurrentUploadId', undefined) - commit('showUploadEditor', false) } EventBus.$emit('uploadStart') |