From 33f0a4fbc587d9bd4d0a41c401e74f5a6d0347c8 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 22 Oct 2018 15:15:09 -0300 Subject: [PATCH] Adds new logic for creating breadcrumbs to repository level pages. --- .../edition/importer-edition-form.vue | 6 +- .../edition/taxonomy-edition-form.vue | 10 +- .../tainacan-collection-subheader.vue | 17 +-- .../components/navigation/tainacan-title.vue | 113 +++--------------- src/admin/js/utilities.js | 6 +- .../pages/lists/available-importers-page.vue | 3 +- src/admin/pages/lists/collections-page.vue | 3 +- src/admin/pages/lists/events-page.vue | 3 +- src/admin/pages/lists/filters-page.vue | 3 +- src/admin/pages/lists/items-page.vue | 2 +- src/admin/pages/lists/metadata-page.vue | 3 +- src/admin/pages/lists/taxonomies-page.vue | 3 +- src/admin/pages/singles/event-page.vue | 6 +- 13 files changed, 53 insertions(+), 125 deletions(-) diff --git a/src/admin/components/edition/importer-edition-form.vue b/src/admin/components/edition/importer-edition-form.vue index a0a06ea74..85563f865 100644 --- a/src/admin/components/edition/importer-edition-form.vue +++ b/src/admin/components/edition/importer-edition-form.vue @@ -1,7 +1,11 @@ diff --git a/src/admin/js/utilities.js b/src/admin/js/utilities.js index c6a4ab889..9bc0307d3 100644 --- a/src/admin/js/utilities.js +++ b/src/admin/js/utilities.js @@ -190,8 +190,8 @@ RouterHelperPlugin.install = function (Vue, options = {}) { getItemsPath(query) { return '/items/?' + qs.stringify(query); }, - getPath(query) { - return '/taxonomies/?' + qs.stringify(query); + getTaxonomiesPath() { + return '/taxonomies/' }, getTaxonomyTermsPath(taxonomyId, query) { return '/taxonomyId/' + taxonomyId + '/terms/?' + qs.stringify(query); @@ -206,7 +206,7 @@ RouterHelperPlugin.install = function (Vue, options = {}) { return '/events/?' + qs.stringify(query); }, getAvailableImportersPath() { - return '/importers/new'; + return '/importers'; }, getProcessesPage(highlightedProcess) { if (highlightedProcess) diff --git a/src/admin/pages/lists/available-importers-page.vue b/src/admin/pages/lists/available-importers-page.vue index 3664613b8..ea323fc0d 100644 --- a/src/admin/pages/lists/available-importers-page.vue +++ b/src/admin/pages/lists/available-importers-page.vue @@ -1,6 +1,7 @@