1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-07 01:19:57 +00:00

feat: don't fetch status when profile undiscoverable

This commit is contained in:
三咲智子 2022-12-01 22:09:11 +08:00
parent 3485208929
commit 4c589a4033
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -43,10 +43,13 @@ const paginator = $computed(() => tabs.find(t => t.name === tab)!.paginator)
</script> </script>
<template> <template>
<div> <div v-if="account!.discoverable">
<CommonTabs v-model="tab" :options="tabs" command /> <CommonTabs v-model="tab" :options="tabs" command />
<KeepAlive> <KeepAlive>
<TimelinePaginator :key="tab" :paginator="paginator" /> <TimelinePaginator :key="tab" :paginator="paginator" />
</KeepAlive> </KeepAlive>
</div> </div>
<div v-else h-30 flex="~ center" text-gray>
Profile unavailable
</div>
</template> </template>