diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-06 23:16:35 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-02-09 11:35:53 +0300 |
commit | 8b07d425d201e4eb61863aeef769102c380961a3 (patch) | |
tree | a09c29204af6db93db0c444f1c752f2614e4c72f | |
parent | 02feb9242ed55fb74542e9b2f615cea1fb2a4126 (diff) |
Remove no longer needed "modalDismissed"
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 <danxuliu@gmail.com>
-rw-r--r-- | src/components/UploadEditor.vue | 18 |
1 files changed, 1 insertions, 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, |