fix(components): update story listing item component

ensure that the lock icon is only shown on stories that are restricted, instead of *every* one
This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-11-12 16:45:34 -05:00
parent e5af6fd827
commit fc8838fdbd
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -26,9 +26,9 @@
<nuxt-link :to="`/story/${story._id}/${idxo + 1}`">
{{ story.title }}
</nuxt-link>
<a-tooltip placement="topLeft">
<a-tooltip v-if="!data?.user && story.chapters[idxo].loggedInOnly" placement="topLeft">
<template #title> You'll need to log in to read this story. Register if you don't already have an account -- it's free! </template>
<icon v-if="!data?.user" istyle="solid" name="lock" />
<icon istyle="solid" name="lock" />
</a-tooltip>
</div>