Skip to content

Commit

Permalink
fix(admin-ui): show client name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Aug 9, 2022
1 parent ad38103 commit 918a959
Showing 1 changed file with 19 additions and 33 deletions.
52 changes: 19 additions & 33 deletions admin-ui/plugins/auth-server/components/Scopes/ScopeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
<FormGroup row>
<GluuLabel label="fields.associatedClients" size={4} />
<Col sm={8}>
{client.map((item) => (
<div>
{client.map((item, key) => (
<div key={'uma-client' + key}>
<a
onClick={() =>
goToClientViewPage(item.inum, item)
Expand All @@ -383,7 +383,7 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
cursor: 'pointer',
}}
>
{item.inum}
{item.displayName ? item.displayName : item.inum}
</a>
</div>
))}
Expand Down Expand Up @@ -434,18 +434,21 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
size={4}
/>
<Col sm={8}>
<div>
{scope.attributes.spontaneousClientId}
<IconButton
onClick={() =>
goToClientViewPage(
scope.attributes.spontaneousClientId,
)
}
>
<Visibility />
</IconButton>
</div>
{client.map((item, key) => (
<div key={'spontaneous-client' + key}>
<a
onClick={() =>
goToClientViewPage(item.inum, item)
}
style={{
textDecoration: 'underline',
cursor: 'pointer',
}}
>
{item.displayName ? item.displayName : item.inum}
</a>
</div>
))}
</Col>
</FormGroup>
</GluuTooltip>
Expand Down Expand Up @@ -475,24 +478,7 @@ function ScopeForm({ scope, scripts, attributes, handleSubmit }) {
</Col>
</FormGroup>
</GluuTooltip>
<FormGroup row>
<GluuLabel label="fields.associatedClients" size={4} />
<Col sm={8}>
{client.map((item) => (
<div>
<a
onClick={() => goToClientViewPage(item.inum, item)}
style={{
textDecoration: 'underline',
cursor: 'pointer',
}}
>
{item.inum}
</a>
</div>
))}
</Col>
</FormGroup>

<FormGroup row>
<GluuLabel label="fields.creationDate" size={4} />
<Col sm={8}>
Expand Down

0 comments on commit 918a959

Please sign in to comment.