diff options
author | Anna Tsyganova <ATSyganova@IBS.RU> | 2022-07-14 16:09:40 +0300 |
---|---|---|
committer | Anna Tsyganova <ATSyganova@IBS.RU> | 2022-07-14 16:09:40 +0300 |
commit | 8d11a46d1b3babff59e84cf8f390735d9d47e765 (patch) | |
tree | 038465395b1d8097cb371a4596ecfb88451ca2f0 /src/components | |
parent | bd05f9f7d939bb7990b95e4e10eef414ea104a3b (diff) | |
parent | 72fccd01e62b3e0498dd3697f3322212febc7b1d (diff) | |
download | webui-vue-8d11a46d1b3babff59e84cf8f390735d9d47e765.tar.xz |
Merge branch 'sila-ui' of git.sila.ru:pub/openbmc/webui-vue into sila-ui
Diffstat (limited to 'src/components')
-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> |