Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Nov 18, 2024
1 parent 4b968fc commit 9b13a1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Filament/Resources/ProblemResource/Pages/ViewProblem.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ function (array $data) {

DeleteAction::make()
->label(__('issues.actions.delete'))
->action(function (){
$this->record->contribution()->delete();
$this->record->delete();
$this->redirect(ProblemResource::getUrl('index'));
})
// ->successRedirectUrl(ProblemResource::getUrl('index'))
->outlined(),

];
Expand Down

0 comments on commit 9b13a1d

Please sign in to comment.