From 7107954e21bb2456056e9c21cf4804654e2f19cb Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 27 May 2022 10:40:54 -0300 Subject: [PATCH] Adds totalItems and totalCollections info. --- src/components/lists/CollectionsList.vue | 23 +++++++++++++++++++++-- src/components/lists/ItemsList.vue | 6 +++--- src/locales/translation-strings.ts | 18 ++++++++++++------ src/pages/HomePage.vue | 18 +++++++++++++----- src/store/storeTainacan.ts | 13 ++++++++++--- 5 files changed, 59 insertions(+), 19 deletions(-) diff --git a/src/components/lists/CollectionsList.vue b/src/components/lists/CollectionsList.vue index 8075307..7a52fec 100644 --- a/src/components/lists/CollectionsList.vue +++ b/src/components/lists/CollectionsList.vue @@ -3,7 +3,23 @@ - {{ collection.name ? collection.name : 'Coleção sem nome' }} + +

+ {{ collection.name ? collection.name : $t('label_collection_without_name') }}  + + + + + + + + + +

+

+ {{ $t('total_of_published_items', [collection.total_items.publish]) }} +

+
@@ -13,7 +29,9 @@ import { IonImg, IonThumbnail, IonLabel, + IonIcon } from '@ionic/vue'; +import { lockClosedOutline, readerOutline, trashOutline } from 'ionicons/icons'; import { computed } from 'vue'; export default { @@ -25,10 +43,11 @@ export default { IonImg, IonThumbnail, IonLabel, + IonIcon }, setup() { const thumbnailPlaceholder = computed (() => require('../../assets/placeholder_square_small.png')) - return { thumbnailPlaceholder } + return { thumbnailPlaceholder, lockClosedOutline, readerOutline, trashOutline } }, } diff --git a/src/components/lists/ItemsList.vue b/src/components/lists/ItemsList.vue index 6052dbd..daeca3b 100644 --- a/src/components/lists/ItemsList.vue +++ b/src/components/lists/ItemsList.vue @@ -1,10 +1,10 @@