diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-05 12:14:29 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-05 12:14:29 +0300 |
commit | 7fbf939a06261922da8bfb90537db3c31fa44402 (patch) | |
tree | 49d01659c56810bd8a1ccb3f06fa1989ff789882 | |
parent | 34e4553deec6ec50b0f9eaa36eab4b8983f11523 (diff) | |
download | webui-vue-7fbf939a06261922da8bfb90537db3c31fa44402.tar.xz |
fx start when click close
-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; } }, }, |