We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5876d59 + 48cf3ee commit 6633b7fCopy full SHA for 6633b7f
src/Filament/Resources/DepartmentResource/Pages/EditDepartment.php
@@ -2,6 +2,7 @@
2
3
namespace LaraZeus\Wind\Filament\Resources\DepartmentResource\Pages;
4
5
+use Filament\Pages\Actions\Action;
6
use Filament\Resources\Pages\EditRecord;
7
use LaraZeus\Wind\Filament\Resources\DepartmentResource;
8
@@ -15,4 +16,19 @@ public function mount($record): void /* @phpstan-ignore-line */
15
16
17
parent::mount($record);
18
}
19
+
20
+ protected function getActions(): array
21
+ {
22
+ return array_merge(
23
+ parent::getActions(),
24
+ [
25
+ Action::make('Open')
26
+ ->color('warning')
27
+ ->icon('heroicon-o-external-link')
28
+ ->label(__('Open'))
29
+ ->url(fn (): string => route('contact', ['departmentSlug' => $this->record]))
30
+ ->openUrlInNewTab(),
31
+ ],
32
+ );
33
+ }
34
0 commit comments