Skip to content
Snippets Groups Projects
Commit cd65de8b authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3436310 by baldwinlouie, yas: Hotfix - Support modal delete dialog windows

parent bb0fc12b
No related branches found
No related tags found
1 merge request!59Resolve #3436310 "Hot fix"
Pipeline #130988 passed
......@@ -205,7 +205,8 @@ function rigel_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if (!empty($form['actions']['submit'])) {
$icon = Bootstrap::cssClassFromString($form['actions']['submit']['#value']);
if (($icon === 'remove' && $form['actions']['submit']['#value'] !== 'Disassociate Address') || ($icon === 'trash')) {
// Add btn-trash so modal CSS can pick it up and completely hide the button.
// Add btn-trash so modal CSS can pick it up and completely
// hide the button.
$trash_identifier = str_contains($form['actions']['submit']['#value']->__toString(), 'Delete') === TRUE ? ' btn-trash' : '';
$form['actions']['submit']['#prefix'] = '<div class="btn btn-danger btn-wrap ripple-effect' . $trash_identifier . '"><span class="glyphicon glyphicon-' . $icon . '"></span>';
$form['actions']['submit']['#suffix'] = '</div>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment