diff --git a/js/components/upload_input.js b/js/components/upload_input.js index 52cd8bf8..cdd9b15e 100644 --- a/js/components/upload_input.js +++ b/js/components/upload_input.js @@ -58,18 +58,18 @@ export default { this.$refs.attachmentFilename.value = file.name this.$refs.attachmentObjectName.value = response.objectName this.$refs.attachmentInput.disabled = true + emitFieldChange(this) + this.changed = true this.downloadLink = await this.getDownloadLink( file.name, response.objectName ) } else { + emitFieldChange(this) + this.changed = true this.uploadError = true } - - this.changed = true - - emitFieldChange(this) }, removeAttachment: function(e) { e.preventDefault()