fix(pinned): layout & not signed in

zio/stable
三咲智子 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
1 changed files with 5 additions and 4 deletions

View File

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