From 11cdb6d72fc579a82e964d18977b6782bba536b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 26 Nov 2024 23:46:10 +0100 Subject: [PATCH] disabled Card action --- src/Card.php | 4 ++++ 1 file changed, 4 insertions(+) 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;