mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 00:42:34 +00:00
2.x - php
This commit is contained in:
@ -60,6 +60,7 @@ protected function getHeaderActions(): array
|
||||
DeleteAction::make()
|
||||
->record($this->project)
|
||||
->label('Delete Project')
|
||||
->icon('heroicon-o-trash')
|
||||
->modalHeading('Delete Project')
|
||||
->modalDescription('Are you sure you want to delete this project? This action will delete all associated data and cannot be undone.')
|
||||
->using(function (Project $record) {
|
||||
|
@ -39,6 +39,7 @@ protected function getHeaderActions(): array
|
||||
return [
|
||||
CreateAction::make()
|
||||
->label('Connect')
|
||||
->icon('heroicon-o-wifi')
|
||||
->modalHeading('Connect to a Server Provider')
|
||||
->modalSubmitActionLabel('Connect')
|
||||
->createAnother(false)
|
||||
|
@ -43,6 +43,7 @@ protected function getHeaderActions(): array
|
||||
return [
|
||||
CreateAction::make()
|
||||
->label('Create User')
|
||||
->icon('heroicon-o-plus')
|
||||
->authorize('create', User::class)
|
||||
->action(function (array $data) {
|
||||
$user = app(CreateUser::class)->create($data);
|
||||
|
Reference in New Issue
Block a user