From 330c9ef3657a008505ea6b9a94beae6bf5cbc4a2 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Tue, 13 Aug 2019 14:08:53 -0400 Subject: [PATCH] Correctly set and unset uploadError --- js/components/upload_input.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/components/upload_input.js b/js/components/upload_input.js index c387e057..273c1d20 100644 --- a/js/components/upload_input.js +++ b/js/components/upload_input.js @@ -72,7 +72,7 @@ export default { this.$refs.attachmentObjectName.value = this.objectName } else { this.showErrors = true - this.uploadError = 'Your file failed to upload. Please try again later.' + this.uploadError = true } this.changed = true @@ -91,6 +91,7 @@ export default { this.$refs.attachmentInput.value = null } this.showErrors = false + this.uploadError = false this.changed = true emitEvent('field-change', this, {