Skip to content

Commit

Permalink
feat: allow changing action button class
Browse files Browse the repository at this point in the history
Closes #213
  • Loading branch information
josegonzalez authored and ADmad committed Feb 5, 2018
1 parent 2f69983 commit fd1574e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Template/Element/actions.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit fd1574e

Please sign in to comment.