diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-14 15:29:28 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-14 15:29:28 +0300 |
commit | 01729e7851ef661e21a16d8bfc5fea282f8f2f36 (patch) | |
tree | 088c710bc1f59079586ceaaea63d6d8c6fa986ed /src/components/_sila/Global/FormFile.vue | |
parent | e8e8c1ea5c64d1f6dd28878790d3dd82b73fcc5c (diff) | |
download | webui-vue-01729e7851ef661e21a16d8bfc5fea282f8f2f36.tar.xz |
move formfile
Diffstat (limited to 'src/components/_sila/Global/FormFile.vue')
-rw-r--r-- | src/components/_sila/Global/FormFile.vue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/_sila/Global/FormFile.vue b/src/components/_sila/Global/FormFile.vue index cf713acf..30e4af1f 100644 --- a/src/components/_sila/Global/FormFile.vue +++ b/src/components/_sila/Global/FormFile.vue @@ -78,6 +78,15 @@ export default { return this.variant === 'secondary'; }, }, + watch: { + file() { + if (this.file) { + this.$bvModal.hide(`modal-${this.id}`); + } else { + this.$emit('input', this.file); + } + }, + }, }; </script> |