open-vault/ui/app/templates/components/identity/item-policies.hbs
claire bontempo 5e9987a5e7
UI: fixes link from to show page from entity policies list (#17950)
* wait for policy capabilities to load

* add changelog

* fix tests

* revert template
2022-11-16 14:39:59 -06:00

22 lines
779 B
Handlebars

{{#each @model.policies as |policyName|}}
<LinkedBlock @params={{array "vault.cluster.policy.show" "acl" policyName}} class="list-item-row">
<div class="columns is-mobile">
<div class="column is-10">
<LinkTo
@route="vault.cluster.policy.show"
@models={{array "acl" policyName}}
class="is-block has-text-black has-text-weight-semibold"
>
<span class="is-underline">{{policyName}}</span>
</LinkTo>
</div>
<div class="column has-text-right">
{{#if @model.canEdit}}
<Identity::PopupPolicy @params={{array @model policyName}} />
{{/if}}
</div>
</div>
</LinkedBlock>
{{else}}
<EmptyState @title="No policies associated with {{@model.name}} yet" />
{{/each}}