From 571391b1e7b8c39415b8d43aee94e8bd328af444 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 28 Jul 2022 15:03:04 -0300 Subject: [PATCH 1/2] Few layout updates and collection page naming fix. --- src/components/lists/CollectionsList.vue | 7 +++---- src/locales/translation-strings.ts | 2 ++ src/pages/CollectionPage.vue | 9 +++------ src/pages/HomePage.vue | 12 ++++++++++++ src/theme/core.css | 1 + 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/src/components/lists/CollectionsList.vue b/src/components/lists/CollectionsList.vue index 162d384..5f5c58e 100644 --- a/src/components/lists/CollectionsList.vue +++ b/src/components/lists/CollectionsList.vue @@ -63,12 +63,11 @@ export default defineComponent({ const thumbnailPlaceholder = computed (() => require('../../assets/placeholder_square_small.png')) const router = useRouter(); const goToCollectionPage = (collection: any) => { - router .push({ + router.push({ name: 'collection', params: { - id: collection.id, - collection: JSON.stringify(collection) - } + id: collection.id + }, }); } return { diff --git a/src/locales/translation-strings.ts b/src/locales/translation-strings.ts index 1c6254a..93a276f 100644 --- a/src/locales/translation-strings.ts +++ b/src/locales/translation-strings.ts @@ -7,6 +7,7 @@ export const translationStrings = { label_loading: 'Loading...', label_items_list: 'Items list', label_collections_list: 'Collections list', + label_collection_items_list: 'Collection items list', collection: 'Collection', label_site_url: 'Archive site URL', placeholder_site_url: 'https://my-tainacan-archive.com', @@ -45,6 +46,7 @@ export const translationStrings = { label_loading: 'Carregando...', label_items_list: 'Lista de itens', label_collections_list: 'Lista de coleções', + label_collection_items_list: 'Lista de itens da coleção', collection: 'Coleção', label_site_url: 'URL do Site do Acervo', placeholder_site_url: 'https://meu-acervo-tainacan.com', diff --git a/src/pages/CollectionPage.vue b/src/pages/CollectionPage.vue index e617ef2..c730824 100644 --- a/src/pages/CollectionPage.vue +++ b/src/pages/CollectionPage.vue @@ -1,6 +1,6 @@