patch: livewire url attributes

This commit is contained in:
HDVinnie
2024-03-06 02:02:05 -05:00
parent 9a78853a27
commit 71c5a3ebcb
43 changed files with 400 additions and 314 deletions
+12 -10
View File
@@ -28,34 +28,36 @@ class UserSearch extends Component
use LivewireSort;
use WithPagination;
#[Url]
#TODO: Update URL attributes once Livewire 3 fixes upstream bug. See: https://github.com/livewire/livewire/discussions/7746
#[Url(history: true)]
public bool $show = false;
#[Url]
#[Url(history: true)]
public int $perPage = 25;
#[Url]
#[Url(history: true)]
public string $username = '';
#[Url]
#[Url(history: true)]
public string $email = '';
#[Url]
#[Url(history: true)]
public string $rsskey = '';
#[Url]
#[Url(history: true)]
public string $apikey = '';
#[Url]
#[Url(history: true)]
public string $passkey = '';
#[Url]
#[Url(history: true)]
public ?int $groupId = null;
#[Url]
#[Url(history: true)]
public string $sortField = 'created_at';
#[Url]
#[Url(history: true)]
public string $sortDirection = 'desc';
final public function updatingShow(): void