Skip to content

Commit

Permalink
Merge pull request #15 from lara-zeus/fix-folder
Browse files Browse the repository at this point in the history
fix view action
  • Loading branch information
atmonshi authored Apr 16, 2024
2 parents fcdfef1 + d0fc6fb commit 2168f1b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Filament/ChaosResource/ChaosTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ public static function make(
Tables\Actions\ActionGroup::make([
...$actions,
Tables\Actions\ViewAction::make()
/*->visible(function() use($resource){
return false;
dd($resource::getPages(),static::resourceHasPage($resource, 'view'));
})*/,
->visible(fn () => static::resourceHasPage($resource, 'view')),
Tables\Actions\EditAction::make()->color('info')->visible(static::resourceHasPage($resource, 'edit')),
Tables\Actions\DeleteAction::make()
->visible(
Expand Down

0 comments on commit 2168f1b

Please sign in to comment.