Skip to content

Commit

Permalink
add identifier if name doesnt exist for idps,sps (datatable)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionick committed Aug 6, 2024
1 parent 7c22727 commit c7d8e6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/src/components/Idps/idpsDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const IdpsDataTable = ({
&& loginsPerIpd.isFetched
&& loginsPerIpd.isSuccess
&& loginsPerIpd?.data?.map(idp => ({
"Identity Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.identity_providers?.['view']) ? idp.name : createAnchorElement(idp.name, `/metrics/identity-providers/${idp.id}`),
"Identity Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.identity_providers?.['view']) ? idp.name : createAnchorElement(idp.name != '' ? idp.name : idp.entityid, `/metrics/identity-providers/${idp.id}`),
"Identity Provider Identifier": idp.entityid,
"Number of Logins": idp.count
}))
Expand Down
2 changes: 1 addition & 1 deletion javascript/src/components/Sps/spsDataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const SpsDataTable = ({
&& !loginsPerSp.isFetching
&& loginsPerSp.isSuccess
&& loginsPerSp?.data?.map(sp => ({
"Service Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.service_providers?.['view']) ? sp.name : createAnchorElement(sp.name, `/metrics/services/${sp.id}`),
"Service Provider Name": (cookies.userinfo == undefined && !!permissions?.actions?.service_providers?.['view']) ? sp.name : createAnchorElement(sp.name != '' ? sp.name : sp.identifier, `/metrics/services/${sp.id}`),
"Service Provider Identifier": sp.identifier,
"Number of Logins": sp.count
}))
Expand Down

0 comments on commit c7d8e6f

Please sign in to comment.