fix(front): Fix instances list pagination

Closes #1277

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-04-26 16:34:16 +02:00
parent 7def6739e1
commit 8543204bd9
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -66,7 +66,7 @@
/> />
</o-field> </o-field>
</div> </div>
<div v-if="instances && instances.elements.length > 0" class="mt-3"> <div v-if="instances && instances.elements.length > 0" class="my-3">
<router-link <router-link
:to="{ :to="{
name: RouteName.INSTANCE, name: RouteName.INSTANCE,
@ -133,7 +133,7 @@
<o-pagination <o-pagination
v-show="instances.total > INSTANCES_PAGE_LIMIT" v-show="instances.total > INSTANCES_PAGE_LIMIT"
:total="instances.total" :total="instances.total"
v-model="instancePage" v-model:current="instancePage"
:per-page="INSTANCES_PAGE_LIMIT" :per-page="INSTANCES_PAGE_LIMIT"
:aria-next-label="t('Next page')" :aria-next-label="t('Next page')"
:aria-previous-label="t('Previous page')" :aria-previous-label="t('Previous page')"