2019-04-02 12:05:27 +02:00
|
|
|
{#if $isUserLoggedIn}
|
2019-04-13 20:04:39 +02:00
|
|
|
<TimelinePage timeline="direct">
|
|
|
|
{#if $pinnedPage !== '/direct'}
|
|
|
|
<DynamicPageBanner title="Direct messages" icon="#fa-envelope"/>
|
2019-04-02 12:05:27 +02:00
|
|
|
{/if}
|
|
|
|
</TimelinePage>
|
|
|
|
{:else}
|
|
|
|
<HiddenFromSSR>
|
|
|
|
<FreeTextLayout>
|
|
|
|
<h1>Conversations</h1>
|
|
|
|
|
|
|
|
<p>Your conversations will appear here when logged in.</p>
|
|
|
|
</FreeTextLayout>
|
|
|
|
</HiddenFromSSR>
|
|
|
|
{/if}
|
|
|
|
<script>
|
|
|
|
import TimelinePage from '../_components/TimelinePage.html'
|
|
|
|
import FreeTextLayout from '../_components/FreeTextLayout.html'
|
|
|
|
import { store } from '../_store/store.js'
|
|
|
|
import HiddenFromSSR from '../_components/HiddenFromSSR'
|
|
|
|
import DynamicPageBanner from '../_components/DynamicPageBanner.html'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
store: () => store,
|
|
|
|
components: {
|
|
|
|
TimelinePage,
|
|
|
|
FreeTextLayout,
|
|
|
|
HiddenFromSSR,
|
|
|
|
DynamicPageBanner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|