1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-11 17:59:20 +01:00

fix: pinning the bookmarks page (#1859)

Pinning the bookmarks page would accidentally pin the local timeline page due a forgotten `else if`.

Fixes #1858
This commit is contained in:
Emilia Michanek 2020-09-02 06:57:36 +02:00 committed by GitHub
parent 978afb8753
commit 60a146eb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,13 @@ export function navComputations (store) {
svg: '#fa-star', svg: '#fa-star',
label: 'Favorites' label: 'Favorites'
} }
} else if (pinnedPage === '/bookmarks') {
pinnedPageObject = {
name: 'bookmarks',
href: '/bookmarks',
svg: '#fa-bookmark',
label: 'Bookmarks'
}
} else if (pinnedPage.startsWith('/lists/')) { } else if (pinnedPage.startsWith('/lists/')) {
pinnedPageObject = { pinnedPageObject = {
name: `lists/${pinnedPage.split('/').slice(-1)[0]}`, name: `lists/${pinnedPage.split('/').slice(-1)[0]}`,