From fd1574e40d74d7c30e40d1d333cf1ea09a7bbb23 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 4 Feb 2018 21:02:50 -0500 Subject: [PATCH] feat: allow changing action button class Closes #213 --- src/Template/Element/actions.ctp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Template/Element/actions.ctp b/src/Template/Element/actions.ctp index e944798f..1c36fea5 100644 --- a/src/Template/Element/actions.ctp +++ b/src/Template/Element/actions.ctp @@ -81,7 +81,10 @@ foreach ($actionGroups['primary'] as $action) { continue; } - $config['options']['class'] = ['btn btn-default']; + if (empty($config['options']['class'])) { + $config['options']['class'] = ['btn btn-default']; + } + echo $this->element('action-button', ['config' => $config]); } unset($actionGroups['primary']);