mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-28 06:28:43 +01:00
Removed All option from tables using server-side pagination.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
:search="search"
|
||||
class="elevation-0"
|
||||
:items-length="total"
|
||||
:items-per-page-options="itemsPerPageOptions"
|
||||
@update:options="fetchLogs"
|
||||
>
|
||||
<template #top>
|
||||
@@ -52,6 +53,12 @@ const headers = [
|
||||
{ title: $gettext('Logger'), key: 'logger' },
|
||||
{ title: $gettext('Message'), key: 'message' },
|
||||
]
|
||||
const itemsPerPageOptions = [
|
||||
{ value: 10, title: '10' },
|
||||
{ value: 25, title: '25' },
|
||||
{ value: 50, title: '50' },
|
||||
{ value: 100, title: '100' },
|
||||
]
|
||||
|
||||
function getLevelColor(level) {
|
||||
if (level === 'INFO') {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
:search="search"
|
||||
class="elevation-0"
|
||||
:items-length="total"
|
||||
:items-per-page-options="itemsPerPageOptions"
|
||||
@update:options="fetchMessages"
|
||||
>
|
||||
<template #top>
|
||||
@@ -48,6 +49,12 @@ const headers = [
|
||||
{ title: $gettext('To'), key: 'rcpt' },
|
||||
{ title: $gettext('From'), key: 'sender' },
|
||||
]
|
||||
const itemsPerPageOptions = [
|
||||
{ value: 10, title: '10' },
|
||||
{ value: 25, title: '25' },
|
||||
{ value: 50, title: '50' },
|
||||
{ value: 100, title: '100' },
|
||||
]
|
||||
|
||||
const loading = ref(true)
|
||||
const messages = ref([])
|
||||
|
||||
Reference in New Issue
Block a user