mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
migrating tests (Metrics, NotificationChannels, PHP, Profile and Projects)
This commit is contained in:
@ -43,9 +43,13 @@ protected function getHeaderActions(): array
|
||||
->authorize('create', NotificationChannel::class)
|
||||
->modalWidth(MaxWidth::Large)
|
||||
->action(function (array $data) {
|
||||
Actions\Create::action($data);
|
||||
try {
|
||||
Actions\Create::action($data);
|
||||
|
||||
$this->dispatch('$refresh');
|
||||
$this->dispatch('$refresh');
|
||||
} catch (\Exception) {
|
||||
$this->halt();
|
||||
}
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ public function getTable(): Table
|
||||
->modalHeading('Delete Notification Channel')
|
||||
->authorize(fn (NotificationChannel $record) => auth()->user()->can('delete', $record))
|
||||
->using(function (array $data, NotificationChannel $record) {
|
||||
//
|
||||
$record->delete();
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user