Skip to content

Commit

Permalink
perf(#362): Refactor pagination util to only display when total page …
Browse files Browse the repository at this point in the history
…is greater than 1
  • Loading branch information
tholulomo committed Mar 22, 2023
1 parent 04920de commit f9f81b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/components/explorer/Pagination.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div class="explorer_page-nav u_margin-top-med viz-pagination-width-mod u_margin-bottom-small">
<div>
<div v-if="tpages > 1" class="explorer_page-nav u_margin-top-med viz-pagination-width-mod u_margin-bottom-small">
<button
@click.prevent="goToBeginning"
v-if="rowNumber > 1" :disabled="rowNumber < 1"
Expand All @@ -18,8 +19,9 @@
<md-icon class="u--default-size">more_horiz</md-icon>
</button>
<button @click.prevent="goToEnd" v-if="rowNumber < factor" class="md-button md-icon-button md-dense md-primary u--color-primary"> {{ tpages }} </button>

</div>
</div>

</template>
<script>
export default {
Expand Down

0 comments on commit f9f81b1

Please sign in to comment.