diff --git a/src/fireedge/src/client/components/Cards/VirtualMachineCard.js b/src/fireedge/src/client/components/Cards/VirtualMachineCard.js index cc36dd2921..f037e97c83 100644 --- a/src/fireedge/src/client/components/Cards/VirtualMachineCard.js +++ b/src/fireedge/src/client/components/Cards/VirtualMachineCard.js @@ -81,7 +81,11 @@ const VirtualMachineCard = memo( return [fromMill, fromMill.toFormat('ff')] }, [ETIME, STIME]) - const { color: stateColor, name: stateName } = getState(vm) + const { + color: stateColor, + name: stateName, + displayName: stateDisplayName, + } = getState(vm) const error = useMemo(() => getErrorMessage(vm), [vm]) const ips = useMemo(() => getIps(vm), [vm]) const memValue = useMemo(() => prettyBytes(+MEMORY, 'MB'), [MEMORY]) @@ -101,7 +105,10 @@ const VirtualMachineCard = memo(
- + {NAME} diff --git a/src/fireedge/src/client/components/Consoles/HeaderVmInfo.js b/src/fireedge/src/client/components/Consoles/HeaderVmInfo.js index 7ffe309c61..d83edd75b0 100644 --- a/src/fireedge/src/client/components/Consoles/HeaderVmInfo.js +++ b/src/fireedge/src/client/components/Consoles/HeaderVmInfo.js @@ -44,7 +44,11 @@ const HeaderVmInfo = ({ id, type }) => { const [getService, { data: serviceFlow }] = useLazyGetServiceQuery() const ips = getIps(vm) - const { color: stateColor, name: stateName } = getState(vm) ?? {} + const { + color: stateColor, + name: stateName, + displayName: stateDisplayName, + } = getState(vm) ?? {} const time = timeFromMilliseconds(+vm?.ETIME || +vm?.STIME) const isVMRC = useMemo(() => type === VM_ACTIONS.VMRC, [type]) const serviceId = useMemo(() => vm?.USER_TEMPLATE?.SERVICE_ID, [vm]) @@ -80,7 +84,10 @@ const HeaderVmInfo = ({ id, type }) => { ) : ( <> - + {srcLogo ? ( ) : ( diff --git a/src/fireedge/src/client/components/Tabs/Vm/Info/information.js b/src/fireedge/src/client/components/Tabs/Vm/Info/information.js index 3b320741e1..846e4f083d 100644 --- a/src/fireedge/src/client/components/Tabs/Vm/Info/information.js +++ b/src/fireedge/src/client/components/Tabs/Vm/Info/information.js @@ -59,7 +59,11 @@ const InformationPanel = ({ vm = {}, actions }) => { const hostAccess = useMemo(() => hasAccessToResource(HOST), [view]) const { ID, NAME, RESCHED, STIME, ETIME, LOCK, DEPLOY_ID } = vm - const { name: stateName, color: stateColor } = getState(vm) + const { + name: stateName, + color: stateColor, + displayName: stateDisplayName, + } = getState(vm) const ips = getIps(vm) const { EXTERNAL_PORT_RANGE, INTERNAL_PORT_RANGE } = @@ -96,7 +100,11 @@ const InformationPanel = ({ vm = {}, actions }) => { value: ( - + ), }, diff --git a/src/fireedge/src/client/constants/states.js b/src/fireedge/src/client/constants/states.js index c263131e73..82b81f7e36 100644 --- a/src/fireedge/src/client/constants/states.js +++ b/src/fireedge/src/client/constants/states.js @@ -18,6 +18,7 @@ * @typedef {object} StateInfo * @property {string} color - Color. * @property {string} name - Name. + * @property {string} [displayName] - Display name. * @property {string} [meaning] - Meaning. * @property {string} [shortName] - Short name. */ diff --git a/src/fireedge/src/client/constants/vm.js b/src/fireedge/src/client/constants/vm.js index 756f5af60d..fe054d33c0 100644 --- a/src/fireedge/src/client/constants/vm.js +++ b/src/fireedge/src/client/constants/vm.js @@ -300,6 +300,7 @@ export const VM_LCM_STATES = [ name: STATES.LCM_INIT, color: COLOR.info.main, meaning: '', + displayName: STATES.PROLOG, }, { // 1