fix: hide status when discoverable is false only

This commit is contained in:
三咲智子 2022-12-01 23:02:53 +08:00
parent 699c35c0b3
commit 989843d1d6
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

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