From f9a9b7c1158a56f4474c4675685b344985cc2142 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 2 Aug 2022 11:59:25 -0300 Subject: [PATCH] Fixes text type document insertion flow. --- .../components/edition/item-document-edition-form.vue | 10 +++++++++- .../admin/components/edition/item-edition-form.vue | 5 ++++- .../components/modals/item-document-text-modal.vue | 7 ++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/admin/components/edition/item-document-edition-form.vue b/src/views/admin/components/edition/item-document-edition-form.vue index 99d37b333..011bf04aa 100644 --- a/src/views/admin/components/edition/item-document-edition-form.vue +++ b/src/views/admin/components/edition/item-document-edition-form.vue @@ -20,7 +20,8 @@ v-if="form.document != undefined && form.document != null && form.document_type != undefined && form.document_type != null && form.document != '' && form.document_type != 'empty'" - class="document-field-content"> + class="document-field-content" + :class="'document-field-content--' + form.document_type">
@@ -55,6 +55,11 @@ export default { this.$refs['item-document-text-input']['$el'].children[0].focus(); this.$refs['item-document-text-input']['$el'].children[0].click(); } + }, + methods: { + confirmTextWriting() { + this.$emit('confirmTextWriting', this.localTextContent); + } } } \ No newline at end of file