Hotfix: Vorschau im Inhalte-Editor und Seitennavigation der Medienbibliothek
- AllowPortalFraming: frame-ancestors 'self' + Portal statt X-Frame-Options SAMEORIGIN, damit portal.b2in.eu die Website im Vorschau-iframe zeigen darf - Medienbibliothek und Hub-Verwaltung: WithPagination – ohne zeigten die Seitenlinks nach dem ersten Livewire-Klick auf den Update-Endpunkt (405); Suche/Filter springen auf Seite 1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a661a68913
commit
69d50eed0f
5 changed files with 92 additions and 2 deletions
|
|
@ -4,7 +4,10 @@ use Flux\Flux;
|
|||
use FluxCms\Core\Models\CmsMedia;
|
||||
use FluxCms\Core\Services\MediaConversionService;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use function Livewire\Volt\{layout, title, state, computed, on};
|
||||
use Livewire\WithPagination;
|
||||
use function Livewire\Volt\{layout, title, state, computed, on, updated, uses};
|
||||
|
||||
uses([WithPagination::class]);
|
||||
|
||||
layout('components.layouts.app');
|
||||
title('Medienbibliothek');
|
||||
|
|
@ -40,6 +43,12 @@ $media = computed(
|
|||
->paginate(48),
|
||||
);
|
||||
|
||||
updated([
|
||||
'search' => fn () => $this->resetPage(),
|
||||
'filterType' => fn () => $this->resetPage(),
|
||||
'filterCollection' => fn () => $this->resetPage(),
|
||||
]);
|
||||
|
||||
$collections = computed(fn () => CmsMedia::query()->whereNotNull('collection')->where('collection', '!=', '')->distinct()->pluck('collection')->sort()->values()->toArray());
|
||||
|
||||
$profiles = computed(fn () => config('flux-cms.media.profiles', []));
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<?php
|
||||
|
||||
use function Livewire\Volt\{state, mount, computed};
|
||||
use Livewire\WithPagination;
|
||||
use function Livewire\Volt\{state, mount, computed, updated, uses};
|
||||
|
||||
uses([WithPagination::class]);
|
||||
|
||||
state([
|
||||
'hubId' => null,
|
||||
|
|
@ -23,6 +26,8 @@ state([
|
|||
'csvFile' => null,
|
||||
]);
|
||||
|
||||
updated(['zipSearch' => fn () => $this->resetPage()]);
|
||||
|
||||
mount(function ($hubId = null) {
|
||||
if ($hubId) {
|
||||
$hub = \App\Models\Hub::findOrFail($hubId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue