{{#popup-menu name="alias-menu"}}
{{#with params.firstObject as |item|}}
<nav class="menu">
<ul class="menu-list">
<li class="action">
{{#link-to "vault.cluster.access.identity.aliases.show" (pluralize item.parentType) item.id "details"}}
Details
{{/link-to}}
</li>
{{#if item.updatePath.isPending}}
<button disabled type="button" class="link button is-loading is-transparent">
loading
</button>
{{else}}
{{#if item.canEdit}}
{{#link-to "vault.cluster.access.identity.aliases.edit" (pluralize item.parentType) item.id}}
Edit
{{/if}}
{{#if item.canDelete}}
<ConfirmAction
@buttonClasses="link is-destroy"
@onConfirmAction={{action "performTransaction" item}}
data-test-item-delete="true"
>
Delete
</ConfirmAction>
</ul>
</nav>
{{/with}}
{{/popup-menu}}