Skip to content

Commit

Permalink
chg: [users:index] Added confirmation modal before changing disabled …
Browse files Browse the repository at this point in the history
…state for users
  • Loading branch information
mokaddem committed Apr 2, 2024
1 parent f4f17a1 commit acb8fa2
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions templates/Users/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,27 @@
return true;
},
],
'skip_full_reload' => true
'skip_full_reload' => true,
'confirm' => [
'enable' => [
'titleHtml' => __('Confirm disabling the user?'),
'type' => 'confirm-warning',
'bodyHtml' => __('You\'re about to change the state of the user {{0}}.'),
'confirmText' => __('Disable user'),
'arguments' => [
'bodyHtml' => ['individual.email'],
]
],
'disable' => [
'titleHtml' => __('Confirm enabling the user?'),
'type' => 'confirm-success',
'bodyHtml' => __('You\'re about to change the state of the user {{0}}.'),
'confirmText' => __('Enable user'),
'arguments' => [
'bodyHtml' => ['individual.email'],
]
]
]
]
],
[
Expand Down Expand Up @@ -168,5 +188,4 @@
]
]
]);
echo '</div>';
?>

0 comments on commit acb8fa2

Please sign in to comment.