From ed2091fb23647487808b9419dc29f23992cd9355 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Tue, 10 Sep 2024 09:10:16 -0400 Subject: [PATCH] remove session properties --- app/Livewire/Mod/Index.php | 5 ----- .../views/components/mod-list-section-partial.blade.php | 4 ---- 2 files changed, 9 deletions(-) diff --git a/app/Livewire/Mod/Index.php b/app/Livewire/Mod/Index.php index 5760c14..602a0d6 100644 --- a/app/Livewire/Mod/Index.php +++ b/app/Livewire/Mod/Index.php @@ -8,7 +8,6 @@ use Illuminate\Contracts\View\View; use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Facades\Cache; use Livewire\Attributes\Computed; -use Livewire\Attributes\Session; use Livewire\Attributes\Url; use Livewire\Component; use Livewire\WithPagination; @@ -21,28 +20,24 @@ class Index extends Component * The search query value. */ #[Url] - #[Session] public string $query = ''; /** * The sort order value. */ #[Url] - #[Session] public string $order = 'created'; /** * The SPT versions filter value. */ #[Url] - #[Session] public array $sptVersions = []; /** * The featured filter value. */ #[Url] - #[Session] public string $featured = 'include'; /** diff --git a/resources/views/components/mod-list-section-partial.blade.php b/resources/views/components/mod-list-section-partial.blade.php index 79c68c9..21dc3f9 100644 --- a/resources/views/components/mod-list-section-partial.blade.php +++ b/resources/views/components/mod-list-section-partial.blade.php @@ -1,10 +1,6 @@ @props(['mods', 'versionScope', 'title', 'link'])
- {{-- - TODO: The button-link should be dynamic based on the versionScope. Eg. Featured `View All` button should take - the user to the mods page with the `featured` query parameter set. - --}}