fix(pages): show next and last buttons under the first chapter

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2024-03-16 14:06:45 -04:00
parent 4f32f9312a
commit 85169dba3e
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -65,14 +65,14 @@
Previous Previous
</a-button> </a-button>
<a-button <a-button
v-if="parseInt(rtr.params.cidx as string) < story.chapterNames.length - 1" v-if="parseInt(rtr.params.cidx as string) <= story.chapterNames.length - 1"
@click="() => navigateTo(`/story/${rtr.params.id}/${parseInt(rtr.params.cidx as string) + 1}`)" @click="() => navigateTo(`/story/${rtr.params.id}/${parseInt(rtr.params.cidx as string) + 1}`)"
> >
Next Next
</a-button> </a-button>
<a-button <a-button
@click="() => navigateTo(`/story/${rtr.params.id}/${story.chapterNames.length}`)" @click="() => navigateTo(`/story/${rtr.params.id}/${story.chapterNames.length}`)"
v-if="parseInt(rtr.params.cidx as string) < story.chapterNames.length - 1" v-if="parseInt(rtr.params.cidx as string) <= story.chapterNames.length - 1"
> >
Last Last
</a-button> </a-button>