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:
parent
e5af6fd827
commit
fc8838fdbd
@ -26,9 +26,9 @@
|
|||||||
<nuxt-link :to="`/story/${story._id}/${idxo + 1}`">
|
<nuxt-link :to="`/story/${story._id}/${idxo + 1}`">
|
||||||
{{ story.title }}
|
{{ story.title }}
|
||||||
</nuxt-link>
|
</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>
|
<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>
|
</a-tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user