Correctly set and unset uploadError

This commit is contained in:
richard-dds 2019-08-13 14:08:53 -04:00
parent 6652d47104
commit 330c9ef365

View File

@ -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, {