diff --git a/src/components/IOC/IOCLiveStatus/IOCLiveStatus.js b/src/components/IOC/IOCLiveStatus/IOCLiveStatus.js index 19f08e0f5c09e650471bbef72dc49b503e525c46..c5f44535f7323d343cbbb99b6fab848300d34552 100644 --- a/src/components/IOC/IOCLiveStatus/IOCLiveStatus.js +++ b/src/components/IOC/IOCLiveStatus/IOCLiveStatus.js @@ -57,15 +57,7 @@ export function IOCLiveStatus({ ioc }) { </Typography> ) : ( grayOutNoText - ), - "Created by": ( - <InternalLink - to={`/user/${ioc.createdBy}`} - label={`Created by, user profile ${ioc.createdBy}`} - > - {ioc.createdBy} - </InternalLink> - ) + ) }; return subset; diff --git a/src/components/IOC/IOCLiveStatus/IOCLiveStatus.spec.js b/src/components/IOC/IOCLiveStatus/IOCLiveStatus.spec.js index 07d67abf7ece88e1360b44a8d93ff3428239db0a..a4b03c621390dd493328f38252dc6a0c89b8d60c 100644 --- a/src/components/IOC/IOCLiveStatus/IOCLiveStatus.spec.js +++ b/src/components/IOC/IOCLiveStatus/IOCLiveStatus.spec.js @@ -33,7 +33,6 @@ function commonTests() { // Expected in Info table: cy.contains("ee3ae2a8"); // git reference cy.contains("Test IOC for CCCE"); // description - cy.contains("johnsparger"); // created by cy.contains("ccce-w40.cslab.esss.lu.se"); // deployed on // Expect alerts to be displayed diff --git a/src/components/IOC/IOCManage/IOCManage.js b/src/components/IOC/IOCManage/IOCManage.js index 715d3a837ab3d399ce71f2a53365bdc2b5b16c70..30899f915130ab425e85cc31eaf989803531bae6 100644 --- a/src/components/IOC/IOCManage/IOCManage.js +++ b/src/components/IOC/IOCManage/IOCManage.js @@ -13,7 +13,8 @@ import { userContext, useAPIMethod, AlertBannerList, - ExternalLink + ExternalLink, + InternalLink } from "@ess-ics/ce-ui-common"; import AccessControl from "../../auth/AccessControl"; import { DeploymentStatus } from "../../../api/DataTypes"; @@ -93,6 +94,14 @@ export function IOCManage({ > {git} </ExternalLink> + ), + "Created by": ( + <InternalLink + to={`/user/${ioc.createdBy}`} + label={`Created by, user profile ${ioc.createdBy}`} + > + {ioc.createdBy} + </InternalLink> ) };