open-vault/ui/app/templates/components/identity/item-members.hbs
Jordan Reimer c1df15e790
Incorporate Ember Flight Icons (#12976)
* adds ember-flight-icons dependecy

* adds inline-json-import babel plugin

* adds flight icon styling

* updates Icon component to support flight icons

* updates Icon component usages to new api and updates name values to flight icon set when available

* fixes tests

* updates icon story with flight mappings and fixes issue with flight icons not rendering in storybook

* adds changelog

* fixes typo in sign action glyph name in transit-key model

* adds comments to icon-map

* updates Icon component to use only supported flight icon sizes

* adds icon transform codemod

* updates icon transform formatting to handle edge case

* runs icon transform on templates

* updates Icon usage in toolbar-filter md and story

* updates tests
2021-12-07 10:05:14 -07:00

54 lines
1.6 KiB
Handlebars

{{#if @model.hasMembers}}
{{#each @model.memberGroupIds as |gid|}}
{{#linked-block
"vault.cluster.access.identity.show"
"groups"
gid
details
class="list-item-row"
}}
<div class="columns is-mobile">
<div class="column is-10">
<LinkTo @route="vault.cluster.access.identity.show" @models={{array "groups" gid "details"}} class="is-block has-text-black has-text-weight-semibold">
<Icon @name="folder" class="has-text-grey-light" />{{gid}}
</LinkTo>
</div>
<div class="column has-text-right">
{{#if @model.canEdit}}
<Identity::PopupMembers @params={{array @model "memberGroupIds" gid}} />
{{/if}}
</div>
</div>
{{/linked-block}}
{{/each}}
{{#each @model.memberEntityIds as |gid|}}
{{#linked-block
"vault.cluster.access.identity.show"
"groups"
gid
details
class="list-item-row"
}}
<div class="columns">
<div class="column is-10">
<LinkTo
@route="vault.cluster.access.identity.show"
@models={{array "entities" gid "details"}}
class="is-block has-text-black has-text-weight-semibold">
<Icon @name="user" class="has-text-grey-light" />{{gid}}
</LinkTo>
</div>
<div class="column has-text-right">
{{#if @model.canEdit}}
<Identity::PopupMembers @params={{array @model "memberEntityIds" gid}} />
{{/if}}
</div>
</div>
{{/linked-block}}
{{/each}}
{{else}}
<EmptyState
@title="No members in this group yet"
/>
{{/if}}