Correctly set and unset uploadError
This commit is contained in:
parent
6652d47104
commit
330c9ef365
@ -72,7 +72,7 @@ export default {
|
|||||||
this.$refs.attachmentObjectName.value = this.objectName
|
this.$refs.attachmentObjectName.value = this.objectName
|
||||||
} else {
|
} else {
|
||||||
this.showErrors = true
|
this.showErrors = true
|
||||||
this.uploadError = 'Your file failed to upload. Please try again later.'
|
this.uploadError = true
|
||||||
}
|
}
|
||||||
|
|
||||||
this.changed = true
|
this.changed = true
|
||||||
@ -91,6 +91,7 @@ export default {
|
|||||||
this.$refs.attachmentInput.value = null
|
this.$refs.attachmentInput.value = null
|
||||||
}
|
}
|
||||||
this.showErrors = false
|
this.showErrors = false
|
||||||
|
this.uploadError = false
|
||||||
this.changed = true
|
this.changed = true
|
||||||
|
|
||||||
emitEvent('field-change', this, {
|
emitEvent('field-change', this, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user