Posterverse: pass the host's homeHref / homeLabel to the layout

VerticalTabsLayout draws a host's "Back to homepage" link directly above
Collapse (the top of the drawer on a phone); the Research Gallery already
forwards it. Posterverse now accepts the same two props (or profile-config
homeHref / homeLabel). Both default to '', which draws no link, so every
existing embed is unchanged.
This commit is contained in:
Doxa Maps 2026-09-30 23:02:38 +00:00
parent 47c5c68c69
commit 32a9b41bc0

View file

@ -26,6 +26,8 @@
:title="headingText"
:nav-label="tr('sec.posters')"
:header="false"
:home-href="homeHref || cfg.homeHref || ''"
:home-label="homeLabel || cfg.homeLabel || ''"
:groups="navGroups"
:active="activeKey"
@update:active="onSelect">
@ -106,6 +108,10 @@ export default defineComponent({
provider: { type: String, default: '' },
// Which tab opens first, by row id (src/tabs.js). Also ?tab= on the page URL.
tab: { type: String, default: '' },
// The host's "Back to homepage" link, drawn by VerticalTabsLayout directly above Collapse (the top of
// the drawer on a phone). Also accepted as profile-config.homeHref / homeLabel. No URL, no link.
homeHref: { type: String, default: '' },
homeLabel: { type: String, default: '' },
},
emits: ['tab-change'],
setup() {