From 8b07d425d201e4eb61863aeef769102c380961a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 6 Nov 2020 21:16:35 +0100 Subject: Remove no longer needed "modalDismissed" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As "showUploadEditor" is now properly updated in the store when an upload starts or discarded the "modalDismissed" property of the component is redundant and can be removed. Signed-off-by: Daniel Calviño Sánchez --- src/components/UploadEditor.vue | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/components/UploadEditor.vue b/src/components/UploadEditor.vue index 2258ac787..59f694372 100644 --- a/src/components/UploadEditor.vue +++ b/src/components/UploadEditor.vue @@ -80,12 +80,6 @@ export default { Plus, }, - data() { - return { - modalDismissed: false, - } - }, - computed: { token() { return this.$store.getters.getToken() @@ -102,12 +96,8 @@ export default { return [] }, - showUploadEditor() { - return this.$store.getters.showUploadEditor - }, - showModal() { - return this.showUploadEditor && !this.modalDismissed + return this.$store.getters.showUploadEditor }, addMoreAriaLabel() { @@ -121,10 +111,6 @@ export default { this.focus() } }, - - currentUploadId() { - this.modalDismissed = false - }, }, methods: { @@ -136,12 +122,10 @@ export default { handleDismiss() { this.$store.dispatch('discardUpload', this.currentUploadId) - this.modalDismissed = true }, handleUpload() { this.$store.dispatch('uploadFiles', this.currentUploadId) - this.modalDismissed = true }, /** * Clicks the hidden file input when clicking the correspondent ActionButton, -- cgit v1.2.3