Skip to content

Commit

Permalink
fix remove materiale
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 17, 2024
1 parent 878899b commit 1560305
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Filament/Resources/RecycleMaterialsResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Actions\ActionGroup;
use Filament\Tables\Actions\DeleteAction;
use Filament\Tables\Actions\DeleteBulkAction;
use Filament\Tables\Actions\EditAction;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;

Expand Down Expand Up @@ -84,16 +87,13 @@ public static function table(Table $table): Table
])
->actions([
ActionGroup::make([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make()->action(function ($record) {
$record->aliases()->delete();
$record->delete();
}),
EditAction::make(),
DeleteAction::make(),
]),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
DeleteBulkAction::make(),
]),
]);
}
Expand Down

0 comments on commit 1560305

Please sign in to comment.