2018-05-02 02:05:36 +02:00
|
|
|
{#if $isUserLoggedIn}
|
|
|
|
<TimelinePage timeline="list/{params.listId}">
|
|
|
|
{#if $pinnedPage !== `/lists/${params.listId}`}
|
|
|
|
<DynamicPageBanner title={listTitle} icon="#fa-bars"/>
|
|
|
|
{/if}
|
2018-03-30 08:16:53 +02:00
|
|
|
</TimelinePage>
|
2018-05-02 02:05:36 +02:00
|
|
|
{:else}
|
2018-03-30 08:16:53 +02:00
|
|
|
<HiddenFromSSR>
|
|
|
|
<FreeTextLayout>
|
2020-11-29 23:13:27 +01:00
|
|
|
<h1>{intl.list}</h1>
|
2018-03-14 01:14:57 +01:00
|
|
|
|
2020-11-29 23:13:27 +01:00
|
|
|
<p>{intl.listNotLoggedIn}</p>
|
2018-03-30 08:16:53 +02:00
|
|
|
</FreeTextLayout>
|
|
|
|
</HiddenFromSSR>
|
2018-05-02 02:05:36 +02:00
|
|
|
{/if}
|
2018-03-14 01:14:57 +01:00
|
|
|
<script>
|
2018-03-30 08:16:53 +02:00
|
|
|
import TimelinePage from '../../_components/TimelinePage.html'
|
2018-03-14 01:14:57 +01:00
|
|
|
import FreeTextLayout from '../../_components/FreeTextLayout.html'
|
|
|
|
import { store } from '../../_store/store.js'
|
2021-07-05 05:19:04 +02:00
|
|
|
import HiddenFromSSR from '../../_components/HiddenFromSSR.html'
|
2018-03-14 01:14:57 +01:00
|
|
|
import DynamicPageBanner from '../../_components/DynamicPageBanner.html'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
computed: {
|
2019-08-20 04:08:59 +02:00
|
|
|
list: ({ params, $lists }) => $lists && $lists.find(_ => _.id === params.listId),
|
2018-05-02 02:05:36 +02:00
|
|
|
listTitle: ({ list }) => list ? list.title : ''
|
2018-03-14 01:14:57 +01:00
|
|
|
},
|
|
|
|
store: () => store,
|
|
|
|
components: {
|
2018-03-30 08:16:53 +02:00
|
|
|
TimelinePage,
|
2018-03-14 01:14:57 +01:00
|
|
|
FreeTextLayout,
|
|
|
|
HiddenFromSSR,
|
|
|
|
DynamicPageBanner
|
|
|
|
}
|
|
|
|
}
|
2020-11-29 23:13:27 +01:00
|
|
|
</script>
|