fix(pinned): layout & not signed in

This commit is contained in:
三咲智子 2023-01-03 18:45:32 +08:00
parent b0766ab52f
commit b18bc7fad1
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -3,7 +3,6 @@ definePageMeta({
middleware: 'auth', middleware: 'auth',
}) })
const paginator = useMasto().accounts.iterateStatuses(currentUser.value!.account.id, { pinned: true })
const { t } = useI18n() const { t } = useI18n()
useHeadFixed({ useHeadFixed({
@ -14,10 +13,12 @@ useHeadFixed({
<template> <template>
<MainContent> <MainContent>
<template #title> <template #title>
<div i-ri:pushpin-line h-6 me-1 /> <NuxtLink to="/public/pinned" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<span>{{ t('account.pinned') }}</span> <div i-ri:pushpin-line />
<span>{{ t('account.pinned') }}</span>
</NuxtLink>
</template> </template>
<TimelinePinned v-if="isMastoInitialised" /> <TimelinePinned v-if="isMastoInitialised && currentUser" />
</MainContent> </MainContent>
</template> </template>