diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Global/FormFile.vue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/Global/FormFile.vue b/src/components/Global/FormFile.vue index 46fa9551..0c02c5ef 100644 --- a/src/components/Global/FormFile.vue +++ b/src/components/Global/FormFile.vue @@ -106,6 +106,15 @@ export default { if (this.file) { this.fileName = this.file.name; this.$bvModal.hide(`modal-${this.id}`); + } else { + this.fileName = null; + this.$emit('input', this.file); + } + }, + + isStarted(oldValue, newValue) { + if (!newValue) { + this.fileName = null; } }, }, |