Skip to content

Commit

Permalink
Set pagination=true by default in clusters table
Browse files Browse the repository at this point in the history
  • Loading branch information
rien committed Mar 3, 2025
1 parent 7260443 commit 8c7cc0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/components/clustering/ClustersTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:headers="headers"
:items="items"
:sort-by="sortBy"
:items-per-page="25"
:items-per-page="15"
must-sort
fixed-header
@click:row="rowClicked"
Expand All @@ -29,6 +29,11 @@
/>
</span>
</template>

<!-- Hide the pagination buttons if pagination is disabled -->
<template v-if="!pagination" #bottom>
<div />
</template>
</v-data-table>
</template>

Expand All @@ -48,7 +53,7 @@ interface Props {
pagination?: boolean;
}
const props = withDefaults(defineProps<Props>(), {});
const props = withDefaults(defineProps<Props>(), { pagination: true });
const router = useRouter();
const pairStore = usePairStore();
Expand Down
1 change: 1 addition & 0 deletions web/src/views/analysis/overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
<clusters-table
:clusters="clustersOverview"
:limit="10"
:pagination="false"
concise
disable-sorting
/>
Expand Down

0 comments on commit 8c7cc0b

Please sign in to comment.