mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-07-02 06:07:28 +08:00
migrate searchbox to mode related
This commit is contained in:
@@ -10,6 +10,8 @@ class CreateCategoryIcon extends CreateRecord
|
||||
{
|
||||
protected static string $resource = CategoryIconResource::class;
|
||||
|
||||
protected static string $view = 'filament.resources.system.category-icon-resource.pages.create-record';
|
||||
|
||||
protected function mutateFormDataBeforeCreate(array $data): array
|
||||
{
|
||||
return array_filter($data);
|
||||
@@ -19,4 +21,11 @@ class CreateCategoryIcon extends CreateRecord
|
||||
{
|
||||
return static::$resource::getUrl('index');
|
||||
}
|
||||
|
||||
protected function getViewData(): array
|
||||
{
|
||||
return [
|
||||
'desc' => nexus_trans('label.icon.desc')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ class EditCategoryIcon extends EditRecord
|
||||
{
|
||||
protected static string $resource = CategoryIconResource::class;
|
||||
|
||||
protected static string $view = 'filament.resources.system.category-icon-resource.pages.edit-record';
|
||||
|
||||
protected function getActions(): array
|
||||
{
|
||||
return [
|
||||
@@ -26,4 +28,11 @@ class EditCategoryIcon extends EditRecord
|
||||
{
|
||||
return static::$resource::getUrl('index');
|
||||
}
|
||||
|
||||
protected function getViewData(): array
|
||||
{
|
||||
return [
|
||||
'desc' => nexus_trans('label.icon.desc')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,11 @@ class ListCategoryIcons extends PageList
|
||||
Actions\CreateAction::make(),
|
||||
];
|
||||
}
|
||||
|
||||
protected function getViewData(): array
|
||||
{
|
||||
return [
|
||||
'desc' => nexus_trans('label.icon.desc')
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user