From 686f61969c12d47c8a3028e5afaaafe15373e2f5 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 17 Aug 2023 18:50:37 -0400 Subject: [PATCH] fix(striker-ui): rename node->subnode in manifest form fields --- striker-ui/components/ManageManifest/AnHostInputGroup.tsx | 2 +- .../components/ManageManifest/RunManifestInputGroup.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/ManageManifest/AnHostInputGroup.tsx b/striker-ui/components/ManageManifest/AnHostInputGroup.tsx index e0153b35..1fad7591 100644 --- a/striker-ui/components/ManageManifest/AnHostInputGroup.tsx +++ b/striker-ui/components/ManageManifest/AnHostInputGroup.tsx @@ -138,7 +138,7 @@ const AnHostInputGroup = ({ upses: upsList = {}, } = {}, // Props that depend on others. - hostLabel = `${hostType} ${hostNumber}`, + hostLabel = `${hostType.replace('node', 'subnode')} ${hostNumber}`, }: AnHostInputGroupProps): ReactElement => { const fenceListEntries = useMemo( () => Object.entries(fenceList), diff --git a/striker-ui/components/ManageManifest/RunManifestInputGroup.tsx b/striker-ui/components/ManageManifest/RunManifestInputGroup.tsx index 618ef6ff..9f6c1096 100644 --- a/striker-ui/components/ManageManifest/RunManifestInputGroup.tsx +++ b/striker-ui/components/ManageManifest/RunManifestInputGroup.tsx @@ -96,7 +96,10 @@ const RunManifestInputGroup = ({ (previous, [hostId, { hostName, hostNumber, hostType }]) => { const { headers, hosts, hostNames } = previous; - const prettyId = `${hostType}${hostNumber}`; + const prettyId = `${hostType.replace( + 'node', + 'subnode', + )} ${hostNumber}`; headers[`run-manifest-column-header-cell-${hostId}`] = { children: {prettyId},