summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorAnna Tsyganova <ATSyganova@IBS.RU>2022-07-14 16:09:40 +0300
committerAnna Tsyganova <ATSyganova@IBS.RU>2022-07-14 16:09:40 +0300
commit8d11a46d1b3babff59e84cf8f390735d9d47e765 (patch)
tree038465395b1d8097cb371a4596ecfb88451ca2f0 /src/components
parentbd05f9f7d939bb7990b95e4e10eef414ea104a3b (diff)
parent72fccd01e62b3e0498dd3697f3322212febc7b1d (diff)
downloadwebui-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.vue9
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>