Skip to content

Commit

Permalink
Added ability to hide list item buttons based on boolean test
Browse files Browse the repository at this point in the history
  • Loading branch information
colintucker committed Dec 19, 2017
1 parent a137f13 commit 8e19418
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Extensions/Lists/ListItemExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ public function getListItemButtons()

}

if (isset($spec['show']) && !$this->owner->{$spec['show']}) {
continue;
}

$href = isset($spec['href']) ? $spec['href'] : null;

if ($href) {
Expand Down

0 comments on commit 8e19418

Please sign in to comment.