From 038e202851b328b8afca53e6c960bf740117efb0 Mon Sep 17 00:00:00 2001 From: Savindu Dimal Date: Fri, 22 Mar 2024 15:14:22 +0530 Subject: [PATCH] Fix global key manager token type view issue --- .../KeyManagers/ListKeyManagers.jsx | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/ListKeyManagers.jsx b/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/ListKeyManagers.jsx index f9a9905f4db..b10c8ee9403 100644 --- a/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/ListKeyManagers.jsx +++ b/portals/admin/src/main/webapp/source/src/app/components/KeyManagers/ListKeyManagers.jsx @@ -108,7 +108,25 @@ function globalAPICall() { return new API() .getGlobalKeyManagersList() .then((result) => { - return result.body.list; + const resultList = result.body.list; + resultList.forEach((item) => { + if (item.tokenType === 'DIRECT') { + // eslint-disable-next-line no-param-reassign + item.tokenType = ; + } else if (item.tokenType === 'BOTH') { + // eslint-disable-next-line no-param-reassign + item.tokenType = ( +
+ + +
+ ); + } else { + // eslint-disable-next-line no-param-reassign + item.tokenType = ; + } + }); + return resultList; }) .catch((error) => { throw error;