From 01729e7851ef661e21a16d8bfc5fea282f8f2f36 Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Thu, 14 Jul 2022 15:29:28 +0300 Subject: move formfile --- src/components/_sila/Global/FormFile.vue | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/components') 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); + } + }, + }, }; -- cgit v1.2.3