Skip to content

Commit

Permalink
Merge pull request #117 from awcodes/fix/extra-item-actions-if-disabl…
Browse files Browse the repository at this point in the history
…ed-defaults

Fix: actions check if default action items are disabled
  • Loading branch information
awcodes authored Apr 26, 2024
2 parents 5726aa6 + 16a4bc8 commit 1ebbcb8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/views/components/table-repeater.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
);
}
foreach ($extraItemActions as $extraItemAction) {
$visibleExtraItemActions = array_filter(
$extraItemActions,
fn (Action $action): bool => $action->isVisible(),
);
}
$hasActions = $reorderAction->isVisible()
|| $cloneAction->isVisible()
|| $deleteAction->isVisible()
Expand Down

0 comments on commit 1ebbcb8

Please sign in to comment.