open-vault/ui/app/templates/components/identity/item-groups.hbs
2021-05-17 16:41:39 -05:00

29 lines
917 B
Handlebars

{{#if @model.groupIds}}
{{#each @model.directGroupIds as |gid|}}
<LinkTo @route="vault.cluster.access.identity.show" @models={{array "groups" gid "details"}} class="list-item-row">
<Icon
@glyph="folder-outline"
class="has-text-grey-light"
/>{{gid}}
</LinkTo>
{{/each}}
{{#each @model.inheritedGroupIds as |gid|}}
{{#linked-block
"vault.cluster.access.identity.show" "groups" gid "details"
class="list-item-row"
}}
<LinkTo @route="vault.cluster.access.identity.show" @models={{array "groups" gid "details"}} class="has-text-black">
<Icon
@glyph="folder-outline"
class="has-text-grey-light"
/>{{gid}}
</LinkTo>
<span class="tag has-text-grey is-size-8">inherited</span>
{{/linked-block}}
{{/each}}
{{else}}
<EmptyState
@title="{{@model.name}} is not a member of any groups."
/>
{{/if}}