mirror of
https://github.com/directus/directus.git
synced 2026-01-24 07:07:58 -05:00
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:
@@ -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" />
|
||||
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user