diff options
Diffstat (limited to 'src/components/Global/FormFile.vue')
-rw-r--r-- | src/components/Global/FormFile.vue | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/components/Global/FormFile.vue b/src/components/Global/FormFile.vue index 0c02c5ef..50af468e 100644 --- a/src/components/Global/FormFile.vue +++ b/src/components/Global/FormFile.vue @@ -48,12 +48,6 @@ > </b-button> </div> - <div - v-if="fileName && isStarted" - class="clear-selected-file px-3 py-2 mt-2" - > - {{ fileName }} - </div> </div> </template> @@ -85,15 +79,10 @@ export default { type: String, default: 'secondary', }, - isStarted: { - type: Boolean, - default: false, - }, }, data() { return { file: null, - fileName: null, }; }, computed: { @@ -104,19 +93,11 @@ export default { watch: { file() { 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; - } - }, }, }; </script> |