From df51fd0be2c1f37a72c7e407f3c63db3d7afd3cf Mon Sep 17 00:00:00 2001 From: Jacson Passold Date: Tue, 21 Aug 2018 01:48:52 -0300 Subject: [PATCH] display comment status on item single --- src/admin/pages/singles/item-page.vue | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/admin/pages/singles/item-page.vue b/src/admin/pages/singles/item-page.vue index b6a1fc605..44341a491 100644 --- a/src/admin/pages/singles/item-page.vue +++ b/src/admin/pages/singles/item-page.vue @@ -83,6 +83,19 @@


{{ $i18n.get('info_no_attachments_on_item_yet') }}

+ + + +
@@ -257,7 +270,8 @@ open: false, collectionName: '', thumbPlaceholderPath: tainacan_plugin.base_url + '/admin/images/placeholder_square.png', - urls_open: false + urls_open: false, + collectionCommentStatus: '' } }, components: { @@ -270,7 +284,8 @@ 'fetchMetadata', ]), ...mapActions('collection', [ - 'fetchCollectionName' + 'fetchCollectionName', + 'fetchCollectionCommentStatus' ]), ...mapGetters('item', [ 'getItem', @@ -354,6 +369,10 @@ // Get attachments this.fetchAttachments(this.itemId); + // Obtains collection Comment Status + this.fetchCollectionCommentStatus(this.collectionId).then((collectionCommentStatus) => { + this.collectionCommentStatus = collectionCommentStatus; + }); } }