7eff7b51aa
* Refactors ConfirmAction implementation as a popover * Improves copy surrounding consequences of destructive actions * Moves 'Delete' buttons to Toolbar
26 lines
804 B
Handlebars
26 lines
804 B
Handlebars
{{#popup-menu name="role-aws-nav" contentClass="is-wide"}}
|
|
<nav class="menu">
|
|
<ul class="menu-list">
|
|
<li class="action">
|
|
{{#link-to "vault.cluster.secrets.backend.show" item.idForNav data-test-pki-cert-link="show"}}
|
|
Details
|
|
{{/link-to}}
|
|
</li>
|
|
{{#if item.canRevoke}}
|
|
<li class="action">
|
|
<ConfirmAction
|
|
@buttonClasses="link is-destroy"
|
|
@onConfirmAction={{action "delete" item}}
|
|
@confirmTitle="Revoke this cert?"
|
|
@confirmMessage="Any services using this cert may be affected."
|
|
@confirmButtonText="Revoke"
|
|
data-test-cert-revoke-delete={{item.id}}
|
|
>
|
|
Revoke
|
|
</ConfirmAction>
|
|
</li>
|
|
{{/if}}
|
|
</ul>
|
|
</nav>
|
|
{{/popup-menu}}
|