fix(striker-ui): rename node->subnode in manifest form fields

main
Tsu-ba-me 1 year ago
parent abf5429c3b
commit 686f61969c
  1. 2
      striker-ui/components/ManageManifest/AnHostInputGroup.tsx
  2. 5
      striker-ui/components/ManageManifest/RunManifestInputGroup.tsx

@ -138,7 +138,7 @@ const AnHostInputGroup = <M extends MapToInputTestID>({
upses: upsList = {}, upses: upsList = {},
} = {}, } = {},
// Props that depend on others. // Props that depend on others.
hostLabel = `${hostType} ${hostNumber}`, hostLabel = `${hostType.replace('node', 'subnode')} ${hostNumber}`,
}: AnHostInputGroupProps<M>): ReactElement => { }: AnHostInputGroupProps<M>): ReactElement => {
const fenceListEntries = useMemo( const fenceListEntries = useMemo(
() => Object.entries(fenceList), () => Object.entries(fenceList),

@ -96,7 +96,10 @@ const RunManifestInputGroup = <M extends MapToInputTestID>({
(previous, [hostId, { hostName, hostNumber, hostType }]) => { (previous, [hostId, { hostName, hostNumber, hostType }]) => {
const { headers, hosts, hostNames } = previous; const { headers, hosts, hostNames } = previous;
const prettyId = `${hostType}${hostNumber}`; const prettyId = `${hostType.replace(
'node',
'subnode',
)} ${hostNumber}`;
headers[`run-manifest-column-header-cell-${hostId}`] = { headers[`run-manifest-column-header-cell-${hostId}`] = {
children: <BodyText>{prettyId}</BodyText>, children: <BodyText>{prettyId}</BodyText>,

Loading…
Cancel
Save