open-vault/ui/app/templates/components/identity/popup-policy.hbs
Joshua Ogle 7eff7b51aa
UI: Confirm Action as a popover
* Refactors ConfirmAction implementation as a popover
* Improves copy surrounding consequences of destructive actions
* Moves 'Delete' buttons to Toolbar
2019-05-17 11:29:21 -06:00

27 lines
795 B
Handlebars

{{#popup-menu name="policy-menu"}}
<nav class="menu">
<ul class="menu-list">
<li class="action">
{{#link-to "vault.cluster.policy.show" "acl" policyName}}
View Policy
{{/link-to}}
</li>
<li class="action">
{{#link-to "vault.cluster.policy.edit" "acl" policyName}}
Edit Policy
{{/link-to}}
</li>
<li class="action">
<ConfirmAction
@buttonClasses="link is-destroy"
@confirmButtonText="Remove"
@confirmMessage="This policy may affect permissions to access Vault data."
@onConfirmAction={{action "performTransaction" model policyName}}
>
Remove from {{model.identityType}}
</ConfirmAction>
</li>
</ul>
</nav>
{{/popup-menu}}