From 1635eacd2a9293cd04d21e82def6e2c14ed01242 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 23 Mar 2020 06:09:28 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../registry/explorer/components/registry_breadcrumb.vue | 8 ++++---- app/assets/javascripts/registry/explorer/router.js | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'app/assets/javascripts/registry/explorer') diff --git a/app/assets/javascripts/registry/explorer/components/registry_breadcrumb.vue b/app/assets/javascripts/registry/explorer/components/registry_breadcrumb.vue index f51948da8cc..d935ca091a1 100644 --- a/app/assets/javascripts/registry/explorer/components/registry_breadcrumb.vue +++ b/app/assets/javascripts/registry/explorer/components/registry_breadcrumb.vue @@ -24,10 +24,10 @@ export default { }, lastCrumb() { const { children } = last(this.crumbs); - const { tagName, classList } = first(children); + const { tagName, className } = first(children); return { tagName, - classList: [...classList], + className, text: this.$route.meta.nameGenerator(this.$route), path: { to: this.$route.name }, }; @@ -41,7 +41,7 @@ export default {
  • @@ -51,7 +51,7 @@ export default {
  • - + {{ lastCrumb.text }}
  • diff --git a/app/assets/javascripts/registry/explorer/router.js b/app/assets/javascripts/registry/explorer/router.js index 7e4c3d28623..28df3177df4 100644 --- a/app/assets/javascripts/registry/explorer/router.js +++ b/app/assets/javascripts/registry/explorer/router.js @@ -21,7 +21,9 @@ export default function createRouter(base, store) { root: true, }, beforeEnter: (to, from, next) => { - store.dispatch('requestImagesList'); + if (!from.name || !store.state.images?.length) { + store.dispatch('requestImagesList'); + } next(); }, }, -- cgit v1.2.1