diff --git a/app/Livewire/Ui/Nx/Mail/QuarantineList.php b/app/Livewire/Ui/Nx/Mail/QuarantineList.php index f387297..f827bfe 100644 --- a/app/Livewire/Ui/Nx/Mail/QuarantineList.php +++ b/app/Livewire/Ui/Nx/Mail/QuarantineList.php @@ -22,14 +22,16 @@ class QuarantineList extends Component #[Url(as: 'q', keep: true)] public string $search = ''; + #[Url(as: 'limit', keep: true)] public int $perPage = 25; public int $rows = 500; #[On('quarantine:updated')] public function refresh(): void {} - public function updatedFilter(): void { $this->resetPage(); } - public function updatedSearch(): void { $this->resetPage(); } + public function updatedFilter(): void { $this->resetPage(); } + public function updatedSearch(): void { $this->resetPage(); } + public function updatedPerPage(): void { $this->resetPage(); } public function openMessage(string $msgId): void { diff --git a/app/Livewire/Ui/Nx/Mail/QueueList.php b/app/Livewire/Ui/Nx/Mail/QueueList.php index 78d4daf..c097da3 100644 --- a/app/Livewire/Ui/Nx/Mail/QueueList.php +++ b/app/Livewire/Ui/Nx/Mail/QueueList.php @@ -22,6 +22,7 @@ class QueueList extends Component #[Url(as: 'q', keep: true)] public string $search = ''; + #[Url(as: 'limit', keep: true)] public int $perPage = 25; public array $selected = []; public bool $selectAll = false; @@ -29,8 +30,9 @@ class QueueList extends Component #[On('queue:updated')] public function refresh(): void {} - public function updatedFilter(): void { $this->resetPage(); $this->selected = []; $this->selectAll = false; } - public function updatedSearch(): void { $this->resetPage(); } + public function updatedFilter(): void { $this->resetPage(); $this->selected = []; $this->selectAll = false; } + public function updatedSearch(): void { $this->resetPage(); } + public function updatedPerPage(): void { $this->resetPage(); $this->selected = []; $this->selectAll = false; } public function updatedSelectAll(bool $val): void { diff --git a/resources/views/livewire/ui/nx/mail/quarantine-list.blade.php b/resources/views/livewire/ui/nx/mail/quarantine-list.blade.php index 7f3c8c9..076f595 100644 --- a/resources/views/livewire/ui/nx/mail/quarantine-list.blade.php +++ b/resources/views/livewire/ui/nx/mail/quarantine-list.blade.php @@ -15,6 +15,11 @@ + diff --git a/resources/views/livewire/ui/nx/mail/queue-list.blade.php b/resources/views/livewire/ui/nx/mail/queue-list.blade.php index f370e94..05812b9 100644 --- a/resources/views/livewire/ui/nx/mail/queue-list.blade.php +++ b/resources/views/livewire/ui/nx/mail/queue-list.blade.php @@ -14,6 +14,11 @@ + @endif - @foreach ($elements as $element) - @if (is_string($element)) + {{-- Erste Seite + … --}} + @if ($start > 1) + + @if ($start > 2) @endif - @if (is_array($element)) - @foreach ($element as $page => $url) - - @if ($page == $paginator->currentPage()) - - @else - - @endif - - @endforeach - @endif - @endforeach + @endif + {{-- Seitenfenster --}} + @for ($p = $start; $p <= $end; $p++) + @if ($p == $current) + + @else + + @endif + @endfor + + {{-- … + Letzte Seite --}} + @if ($end < $last) + @if ($end < $last - 1) + + @endif + + @endif + + {{-- Vor --}} @if ($paginator->hasMorePages())