Skip to content

Commit

Permalink
ui: changed device page list to disable if theres no more pages
Browse files Browse the repository at this point in the history
  • Loading branch information
luannmoreira authored and gustavosbarreto committed May 3, 2023
1 parent 8c0601f commit ce954fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/src/components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@
/>
</div>
<div class="d-flex align-center">
<v-btn icon="mdi-chevron-left" variant="plain" @click="$emit('clickPreviousPage')" />
<v-btn icon="mdi-chevron-left" variant="plain" @click="$emit('clickPreviousPage')" :disabled="pageQuantity <= 1" />
<span class="text-subtitle-2">{{ actualPage }} of {{ pageQuantity }}</span>
<v-btn icon="mdi-chevron-right" variant="plain" @click="$emit('clickNextPage')" />
<v-btn
icon="mdi-chevron-right"
variant="plain"
@click="$emit('clickNextPage')"
:disabled="pageQuantity <= 1 || actualPage == pageQuantity" />
</div>
</div>
</div>
Expand Down

0 comments on commit ce954fb

Please sign in to comment.