Adds copy button to entity, alias and mfa method ID fields (#28742)

* make id buttons copyable

* add changelog
This commit is contained in:
claire bontempo 2024-10-21 12:48:00 -07:00 committed by GitHub
parent efd6148f43
commit 9097689d2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

3
changelog/28742.txt Normal file
View file

@ -0,0 +1,3 @@
```release-note:improvement
ui: Adds copy button to identity entity, alias and mfa method IDs
```

View file

@ -4,12 +4,11 @@
~}}
<InfoTableRow @label="Name" @value={{@model.name}} data-test-alias-name={{true}} />
<InfoTableRow @label="ID" @value={{@model.id}} />
<InfoTableRow @label="ID" @value={{@model.id}} @addCopyButton={{true}} />
<InfoTableRow @label={{if (eq @model.identityType "entity-alias") "Entity ID" "Group ID"}} @value={{this.model.canonicalId}}>
<LinkTo
@route="vault.cluster.access.identity.show"
@models={{array (if (eq @model.identityType "entity-alias") "entities" "groups") @model.canonicalId "details"}}
class="has-text-black is-font-mono"
>
{{@model.canonicalId}}
</LinkTo>

View file

@ -19,7 +19,7 @@
{{/if}}
<InfoTableRow @label="Name" @value={{@model.name}} data-test-identity-item-name={{true}} />
<InfoTableRow @label="Type" @value={{@model.type}} />
<InfoTableRow @label="ID" @value={{@model.id}} />
<InfoTableRow @label="ID" @value={{@model.id}} @addCopyButton={{true}} />
<InfoTableRow @label="Merged Ids" @value={{@model.mergedEntityIds}}>
<div>
{{#each @model.mergedEntityIds as |id|}}

View file

@ -60,6 +60,7 @@
</ToolbarActions>
</Toolbar>
<div class="box is-fullwidth is-sideless is-paddingless is-marginless">
<InfoTableRow @label="ID" @value={{this.model.method.id}} @addCopyButton={{true}} />
{{#each this.model.method.attrs as |attr|}}
{{#if (eq attr.type "object")}}
<InfoTableRow