fix(striker-ui): rename node->subnode in host status

main
Tsu-ba-me 1 year ago
parent 94480c68d6
commit 92c4cb86c1
  1. 2
      striker-ui/components/Hosts/AnvilHost.tsx
  2. 18
      striker-ui/lib/consts/HOST_STATUS.ts
  3. 18
      striker-ui/lib/consts/NODES.ts

@ -2,7 +2,7 @@ import { Box, styled, Switch } from '@mui/material';
import API_BASE_URL from '../../lib/consts/API_BASE_URL';
import { LARGE_MOBILE_BREAKPOINT } from '../../lib/consts/DEFAULT_THEME';
import HOST_STATUS from '../../lib/consts/NODES';
import HOST_STATUS from '../../lib/consts/HOST_STATUS';
import { ProgressBar } from '../Bars';
import Decorator, { Colours } from '../Decorator';

@ -0,0 +1,18 @@
const SUBNODE_STATUS_MESSAGE_MAP: ReadonlyMap<string, string> = new Map([
['message_0222', 'The subnode is in an unknown state.'],
['message_0223', 'The subnode is a full cluster member.'],
[
'message_0224',
'The subnode is coming online; the cluster resource manager is running (step 2/3).',
],
[
'message_0225',
'The subnode is coming online; the subnode is a consensus cluster member (step 1/3).',
],
[
'message_0226',
'The subnode has booted, but it is not (yet) joining the cluster.',
],
]);
export default SUBNODE_STATUS_MESSAGE_MAP;

@ -1,18 +0,0 @@
const NODE_STATUS_MESSAGE_MAP: ReadonlyMap<string, string> = new Map([
['message_0222', 'The node is in an unknown state.'],
['message_0223', 'The node is a full cluster member.'],
[
'message_0224',
'The node is coming online; the cluster resource manager is running (step 2/3).',
],
[
'message_0225',
'The node is coming online; the node is a consensus cluster member (step 1/3).',
],
[
'message_0226',
'The node has booted, but it is not (yet) joining the cluster.',
],
]);
export default NODE_STATUS_MESSAGE_MAP;
Loading…
Cancel
Save