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"> <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}

View File

@ -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

View File

@ -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>