Skip to content
Snippets Groups Projects
Commit e47b91a2 authored by Domonkos Gulyas's avatar Domonkos Gulyas
Browse files

CE-2876: Fix review comments on HostIcon

parent fde1d32a
No related branches found
No related tags found
1 merge request!480CE-2876: Load host status asynchronously in host table
Pipeline #191066 failed
This commit is part of merge request !480. Comments created here will be created in the context of that merge request.
......@@ -2,7 +2,7 @@ import React, { useContext, useMemo } from "react";
import { Grid, Skeleton } from "@mui/material";
import { apiContext } from "../../api/DeployApi";
import { useAPIMethod } from "@ess-ics/ce-ui-common";
import { HostStatusIcon } from "./HostIcons";
import { HostStatusIcon } from "./HostStatusIcon";
function createRequest(hostId) {
return {
......
File moved
......@@ -4,7 +4,7 @@ import { HostStatus } from "./HostStatus";
const columns = [
{
field: "bulb",
field: "status",
headerName: "Status",
flex: 0,
headerAlign: "center",
......@@ -19,7 +19,7 @@ const columns = [
export function createRow(host) {
return {
id: host.hostId,
bulb: <HostStatus hostId={host.hostId} />,
status: <HostStatus hostId={host.hostId} />,
hostName: (
<InternalLink
to={`/hosts/${host.hostId}`}
......@@ -32,9 +32,7 @@ export function createRow(host) {
host: host,
description: <EllipsisText>{host.description}</EllipsisText>,
network: <EllipsisText>{host.network}</EllipsisText>,
scope: <EllipsisText>{host.scope}</EllipsisText>,
shortenLongData: true,
iocNotDeployed: !host.iocDeployed
scope: <EllipsisText>{host.scope}</EllipsisText>
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment