c31671ce04
* add dot-to-dash helper * fix context menu on policy page and add test for deletion * use dot-to-dash where we use confirm component * fix acceptance test
22 lines
826 B
Handlebars
22 lines
826 B
Handlebars
{{#popup-menu name="member-edit-menu"}}
|
|
<nav class="menu">
|
|
<ul class="menu-list">
|
|
<li class="action">
|
|
{{#confirm-action
|
|
confirmButtonClasses="button is-primary"
|
|
confirmButtonText="Remove"
|
|
buttonClasses="link is-destroy"
|
|
onConfirmAction=(action "performTransaction" model groupArray memberId)
|
|
confirmMessage=(concat "Are you sure you want to remove " memberId "?")
|
|
showConfirm=(get this (concat "shouldDelete-" (dot-to-dash memberId)))
|
|
class=(if (get this (concat "shouldDelete-" (dot-to-dash memberId))) "message is-block is-warning is-outline")
|
|
containerClasses="message-body is-block"
|
|
messageClasses="is-block"
|
|
}}
|
|
Remove
|
|
{{/confirm-action}}
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
{{/popup-menu}}
|