diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue index ffb8a02aa..ddcbcb736 100644 --- a/src/views/admin/components/edition/item-edition-form.vue +++ b/src/views/admin/components/edition/item-edition-form.vue @@ -316,7 +316,7 @@ class="image"> + v-if="item.document_type == 'empty' && item.document_mimetype == 'empty'"> {{ $i18n.get('label_empty_thumbnail') }} { this.item.document_as_html = item.document_as_html; + this.item.document_mimetype = item.document_mimetype; this.isLoading = false; }) .catch((errors) => { @@ -1266,6 +1267,7 @@ export default { this.updateItemDocument({ item_id: this.itemId, document: this.form.document, document_type: this.form.document_type }) .then(item => { this.item.document_as_html = item.document_as_html; + this.item.document_mimetype = item.document_mimetype; this.isLoading = false; let oldThumbnail = this.item.thumbnail; @@ -1301,6 +1303,7 @@ export default { document_type: this.form.document_type }) .then(() => { + this.item.document_mimetype = 'empty'; this.isLoadingAttachments = true; this.fetchAttachments({ page: 1, @@ -1385,6 +1388,7 @@ export default { .then((item) => { this.isLoading = false; this.item.document_as_html = item.document_as_html; + this.item.document_mimetype = item.document_mimetype; let oldThumbnail = this.item.thumbnail; if (item.document_type == 'attachment' && oldThumbnail != item.thumbnail )