From 3b339b336b55642e169bc35a6bc90a8c734cdb72 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Mon, 25 Mar 2024 09:55:41 +0700 Subject: [PATCH 1/2] fix:(users): add create action --- .../Filament/Resources/UserResource/Pages/ListUsers.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php b/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php index ef9669e..303d299 100644 --- a/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php +++ b/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php @@ -4,11 +4,19 @@ use AdminKit\Core\UI\Filament\Resources\UserResource; use Filament\Resources\Pages\ListRecords; +use Filament\Actions; class ListUsers extends ListRecords { protected static string $resource = UserResource::class; + protected function getActions(): array + { + return [ + Actions\CreateAction::make(), + ]; + } + public function getTitle(): string { return trans('admin-kit::user.resource.title.list'); From 73711090f999db8033727d40550c7c592f9b40e7 Mon Sep 17 00:00:00 2001 From: ast21 Date: Mon, 25 Mar 2024 02:56:34 +0000 Subject: [PATCH 2/2] Fix styling --- src/UI/Filament/Resources/UserResource/Pages/ListUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php b/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php index 303d299..fae26fa 100644 --- a/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php +++ b/src/UI/Filament/Resources/UserResource/Pages/ListUsers.php @@ -3,8 +3,8 @@ namespace AdminKit\Core\UI\Filament\Resources\UserResource\Pages; use AdminKit\Core\UI\Filament\Resources\UserResource; -use Filament\Resources\Pages\ListRecords; use Filament\Actions; +use Filament\Resources\Pages\ListRecords; class ListUsers extends ListRecords {