From 71ddf13050246a6e5285791c2bc50b59eb27171d Mon Sep 17 00:00:00 2001 From: Johanna Szepanski <johanna.szepanski@ess.eu> Date: Mon, 4 Mar 2024 14:28:52 +0000 Subject: [PATCH] CE-2506: Moved created by value from status to management tab --- src/components/IOC/IOCLiveStatus/IOCLiveStatus.js | 10 +--------- .../IOC/IOCLiveStatus/IOCLiveStatus.spec.js | 1 - src/components/IOC/IOCManage/IOCManage.js | 11 ++++++++++- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/IOC/IOCLiveStatus/IOCLiveStatus.js b/src/components/IOC/IOCLiveStatus/IOCLiveStatus.js index 19f08e0f..c5f44535 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 07d67abf..a4b03c62 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 715d3a83..30899f91 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> ) }; -- GitLab