Hide duplicate counter in pagination when search bar is present
All checks were successful
Build Docker Image / build (push) Successful in 5m27s
All checks were successful
Build Docker Image / build (push) Successful in 5m27s
Add hideCounter prop to PaginationLoadMore and use it on hubs page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<Stack v-if="total > 0" gap="2" align="center" justify="center">
|
||||
<Text tone="muted">
|
||||
<Text v-if="!hideCounter" tone="muted">
|
||||
{{ t('common.pagination.showing', { shown, total }) }}
|
||||
</Text>
|
||||
<Button
|
||||
@@ -20,6 +20,7 @@ const props = defineProps<{
|
||||
total: number
|
||||
canLoadMore: boolean
|
||||
loading?: boolean
|
||||
hideCounter?: boolean
|
||||
}>()
|
||||
|
||||
defineEmits<{
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
:total="total"
|
||||
:can-load-more="canLoadMore"
|
||||
:loading="isLoadingMore"
|
||||
hide-counter
|
||||
@load-more="loadMore"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user