fix nav bar for pinned lists (#263)

This commit is contained in:
Nolan Lawson 2018-05-03 21:24:10 -07:00 committed by GitHub
parent b1a3be06ff
commit 9e9a897ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<nav class="main-nav">
<ul class="main-nav-ul">
{#each $navPages as navPage (navPage.name)}
{#each $navPages as navPage (navPage.href)}
<li class="main-nav-li">
<NavItem
{page}

View File

@ -33,7 +33,7 @@ export function navComputations (store) {
}
} else if (pinnedPage.startsWith('/lists/')) {
pinnedPageObject = {
name: 'lists',
name: `lists/${pinnedPage.split('/').slice(-1)[0]}`,
href: pinnedPage,
svg: '#fa-bars',
label: pinnedListTitle

View File

@ -1,7 +1,7 @@
<svelte:head>
<title>Pinafore List</title>
</svelte:head>
<Layout page='lists'>
<Layout page='lists/{params.listId}'>
<LazyPage {pageComponent} {params} />
</Layout>
<script>