diff --git a/src/Card.php b/src/Card.php index 1912ad1be6..7ddb05631b 100644 --- a/src/Card.php +++ b/src/Card.php @@ -255,6 +255,10 @@ public function addClickAction(Model\UserAction $action, ?Button $button = null, } } + if ($action->enabled === false) { + $button->addClass('disabled'); + } + $button->on('click', $cardDeck !== null ? $cardDeck->sharedExecutorsContainer->getExecutor($action) : $action, $defaults); return $this;