From 93e7d02487028987ac12d21b6be4bd99d0b23b86 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 14 Aug 2019 11:15:13 +1000 Subject: [PATCH] Add link target="" support to components that display menus. (#384) --- packages/components/Atoms/Global/mixins/parentlinks.js | 6 ++++-- packages/components/Molecules/Sitemap/SitemapMenu.vue | 2 +- .../components/Organisms/SiteFooter/FooterNavigation.vue | 4 ++-- .../components/Organisms/SiteFooter/LinksAndCopyright.vue | 2 +- packages/components/Organisms/SiteHeader/menu.vue | 5 +++-- .../components/Organisms/SiteSectionNavigation/menu.vue | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/components/Atoms/Global/mixins/parentlinks.js b/packages/components/Atoms/Global/mixins/parentlinks.js index 33576ea2b..8877b0cf8 100644 --- a/packages/components/Atoms/Global/mixins/parentlinks.js +++ b/packages/components/Atoms/Global/mixins/parentlinks.js @@ -66,13 +66,15 @@ const parentlinks = { return branch.map(item => { let newitem = { text: item.text, - url: item.url + url: item.url, + target: item.target } if (item.children) { newitem.children = this.generateParentLinks(item.children) newitem.children.unshift({ text: item.text, - url: item.url + url: item.url, + target: item.target }) } return newitem diff --git a/packages/components/Molecules/Sitemap/SitemapMenu.vue b/packages/components/Molecules/Sitemap/SitemapMenu.vue index 49ebc9b5c..dbbc3ca29 100644 --- a/packages/components/Molecules/Sitemap/SitemapMenu.vue +++ b/packages/components/Molecules/Sitemap/SitemapMenu.vue @@ -1,7 +1,7 @@