mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
Adds copy button to entity, alias and mfa method ID fields (#28742)
* make id buttons copyable * add changelog
This commit is contained in:
3
changelog/28742.txt
Normal file
3
changelog/28742.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
ui: Adds copy button to identity entity, alias and mfa method IDs
|
||||||
|
```
|
||||||
@@ -4,12 +4,11 @@
|
|||||||
~}}
|
~}}
|
||||||
|
|
||||||
<InfoTableRow @label="Name" @value={{@model.name}} data-test-alias-name={{true}} />
|
<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}}>
|
<InfoTableRow @label={{if (eq @model.identityType "entity-alias") "Entity ID" "Group ID"}} @value={{this.model.canonicalId}}>
|
||||||
<LinkTo
|
<LinkTo
|
||||||
@route="vault.cluster.access.identity.show"
|
@route="vault.cluster.access.identity.show"
|
||||||
@models={{array (if (eq @model.identityType "entity-alias") "entities" "groups") @model.canonicalId "details"}}
|
@models={{array (if (eq @model.identityType "entity-alias") "entities" "groups") @model.canonicalId "details"}}
|
||||||
class="has-text-black is-font-mono"
|
|
||||||
>
|
>
|
||||||
{{@model.canonicalId}}
|
{{@model.canonicalId}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
<InfoTableRow @label="Name" @value={{@model.name}} data-test-identity-item-name={{true}} />
|
<InfoTableRow @label="Name" @value={{@model.name}} data-test-identity-item-name={{true}} />
|
||||||
<InfoTableRow @label="Type" @value={{@model.type}} />
|
<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}}>
|
<InfoTableRow @label="Merged Ids" @value={{@model.mergedEntityIds}}>
|
||||||
<div>
|
<div>
|
||||||
{{#each @model.mergedEntityIds as |id|}}
|
{{#each @model.mergedEntityIds as |id|}}
|
||||||
|
|||||||
@@ -60,6 +60,7 @@
|
|||||||
</ToolbarActions>
|
</ToolbarActions>
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
<div class="box is-fullwidth is-sideless is-paddingless is-marginless">
|
<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|}}
|
{{#each this.model.method.attrs as |attr|}}
|
||||||
{{#if (eq attr.type "object")}}
|
{{#if (eq attr.type "object")}}
|
||||||
<InfoTableRow
|
<InfoTableRow
|
||||||
|
|||||||
Reference in New Issue
Block a user