mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Remove query string usage from simple pages
This commit is contained in:
@@ -40,13 +40,13 @@ trait InteractsWithActions
|
||||
/**
|
||||
* @var mixed
|
||||
*/
|
||||
#[Url(as: 'action')]
|
||||
// #[Url(as: 'action')]
|
||||
public $defaultAction = null;
|
||||
|
||||
/**
|
||||
* @var mixed
|
||||
*/
|
||||
#[Url(as: 'actionArguments')]
|
||||
// #[Url(as: 'actionArguments')]
|
||||
public $defaultActionArguments = null;
|
||||
|
||||
/**
|
||||
@@ -56,6 +56,17 @@ trait InteractsWithActions
|
||||
|
||||
protected bool $hasActionsModalRendered = false;
|
||||
|
||||
/**
|
||||
* @return array<string, array<mixed>>
|
||||
*/
|
||||
protected function queryStringInteractsWithActions(): array
|
||||
{
|
||||
return [
|
||||
'defaultAction' => ['as' => 'action'],
|
||||
'defaultActionArguments' => ['as' => 'actionArguments'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $arguments
|
||||
*/
|
||||
|
||||
@@ -26,4 +26,12 @@ abstract class SimplePage extends BasePage
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, array<mixed>>
|
||||
*/
|
||||
protected function queryStringInteractsWithActions(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user