open-vault/ui/app/templates/components/pki-cert-popup.hbs
Angel Garbarino dc2f1f98b2
Glimmerizing StatusMenu/SelectableCard/PkiCertPopup (#15716)
* glimmerize status-menu

* selectable card start

* finish selectable card

* test fix

* pki-cert-popup glimmerize

* cleanup

* small fix

* nit

* one more nit

* pr comments
2022-06-02 14:40:04 -06:00

25 lines
812 B
Handlebars

<PopupMenu @name="role-aws-nav" @contentClass="is-wide">
<nav class="menu">
<ul class="menu-list">
<li class="action">
<LinkTo @route="vault.cluster.secrets.backend.show" @model={{@item.idForNav}} data-test-pki-cert-link="show">
Details
</LinkTo>
</li>
{{#if @item.canRevoke}}
<li class="action">
<ConfirmAction
@buttonClasses="link is-destroy"
@onConfirmAction={{fn this.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>
</PopupMenu>