Fix pagination on disabled o2m and m2m fields (#15304)

* fix pagination on disabled o2m and m2m

* alternative fix and hide per-page

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
Azri Kahar
2022-08-31 02:55:24 +08:00
committed by GitHub
parent 425ef2f080
commit 4e1fbbf629
2 changed files with 4 additions and 14 deletions

View File

@@ -145,13 +145,8 @@
<div class="actions" :class="layout">
<template v-if="layout === LAYOUTS.TABLE">
<template v-if="totalItemCount > 10">
<v-pagination
v-if="pageCount > 1"
v-model="page"
:length="pageCount"
:total-visible="width.includes('half') ? 3 : 5"
/>
<template v-if="pageCount > 1">
<v-pagination v-model="page" :length="pageCount" :total-visible="width.includes('half') ? 3 : 5" />
<div class="spacer" />

View File

@@ -144,13 +144,8 @@
<div class="actions" :class="layout">
<template v-if="layout === LAYOUTS.TABLE">
<template v-if="totalItemCount > 10">
<v-pagination
v-if="pageCount > 1"
v-model="page"
:length="pageCount"
:total-visible="width.includes('half') ? 3 : 5"
/>
<template v-if="pageCount > 1">
<v-pagination v-model="page" :length="pageCount" :total-visible="width.includes('half') ? 3 : 5" />
<div class="spacer" />