Fix topics mobile card list pagination: use paginatedTopics instead of filteredTopics
This commit is contained in:
@@ -82,7 +82,7 @@
|
|||||||
<el-pagination background layout="prev, pager, next" :total="filteredTopics.length" :page-size="pageSize" :current-page="currentPage" @current-change="currentPage = $event"></el-pagination>
|
<el-pagination background layout="prev, pager, next" :total="filteredTopics.length" :page-size="pageSize" :current-page="currentPage" @current-change="currentPage = $event"></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<div class="topic-card-list" v-if="filteredTopics && filteredTopics.length > 0">
|
<div class="topic-card-list" v-if="filteredTopics && filteredTopics.length > 0">
|
||||||
<div v-for="topic in filteredTopics" :key="topic.id" class="topic-card" :class="{ 'is-checked': selectedTopicIds.includes(topic.id) }">
|
<div v-for="topic in paginatedTopics" :key="topic.id" class="topic-card" :class="{ 'is-checked': selectedTopicIds.includes(topic.id) }">
|
||||||
<div class="topic-card-header">
|
<div class="topic-card-header">
|
||||||
<div class="topic-card-title">
|
<div class="topic-card-title">
|
||||||
<el-checkbox :checked="selectedTopicIds.includes(topic.id)" @change="toggleCheck(topic.id)" style="margin-right:6px;"></el-checkbox>
|
<el-checkbox :checked="selectedTopicIds.includes(topic.id)" @change="toggleCheck(topic.id)" style="margin-right:6px;"></el-checkbox>
|
||||||
|
|||||||
Reference in New Issue
Block a user