Removed All option from tables using server-side pagination.

This commit is contained in:
Antoine Nguyen
2025-08-27 11:55:50 +02:00
parent 296728bc25
commit dcfbfd4db5
6 changed files with 131 additions and 126 deletions
@@ -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([])