fix nav bar for pinned lists (#263)
This commit is contained in:
parent
b1a3be06ff
commit
9e9a897ede
|
@ -1,6 +1,6 @@
|
||||||
<nav class="main-nav">
|
<nav class="main-nav">
|
||||||
<ul class="main-nav-ul">
|
<ul class="main-nav-ul">
|
||||||
{#each $navPages as navPage (navPage.name)}
|
{#each $navPages as navPage (navPage.href)}
|
||||||
<li class="main-nav-li">
|
<li class="main-nav-li">
|
||||||
<NavItem
|
<NavItem
|
||||||
{page}
|
{page}
|
||||||
|
|
|
@ -33,7 +33,7 @@ export function navComputations (store) {
|
||||||
}
|
}
|
||||||
} else if (pinnedPage.startsWith('/lists/')) {
|
} else if (pinnedPage.startsWith('/lists/')) {
|
||||||
pinnedPageObject = {
|
pinnedPageObject = {
|
||||||
name: 'lists',
|
name: `lists/${pinnedPage.split('/').slice(-1)[0]}`,
|
||||||
href: pinnedPage,
|
href: pinnedPage,
|
||||||
svg: '#fa-bars',
|
svg: '#fa-bars',
|
||||||
label: pinnedListTitle
|
label: pinnedListTitle
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Pinafore – List</title>
|
<title>Pinafore – List</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
<Layout page='lists'>
|
<Layout page='lists/{params.listId}'>
|
||||||
<LazyPage {pageComponent} {params} />
|
<LazyPage {pageComponent} {params} />
|
||||||
</Layout>
|
</Layout>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue