Skip to content
Snippets Groups Projects

CE-3061: Update ioc alerts and status separately

Merged Johanna Szepanski requested to merge CE-3061-update-IOC-alerts-async into develop
1 file
+ 37
6
Compare changes
  • Side-by-side
  • Inline
import { Grid, Box } from "@mui/material";
import { Grid, Box, Stack, Typography } from "@mui/material";
import { KeyValueTable } from "@ess-ics/ce-ui-common";
import { IOCBadge } from "../IOCBadge";
import { IOCStatus } from "../IOCTable/IOCStatus";
import AccessControl from "../../auth/AccessControl";
export function diff(o1, o2) {
@@ -71,10 +71,41 @@ export function IOCDetails({ ioc, getSubset = defaultSubset, alert, buttons }) {
item
xs={12}
>
<IOCBadge
ioc={ioc}
sx={{ mt: 2.5 }}
/>
<Stack
flexDirection="row"
alignItems="center"
justifyContent="flex-start"
>
<Box
sx={{
marginRight: (theme) => theme.spacing(4),
marginLeft: (theme) => theme.spacing(6)
}}
>
<IOCStatus
id={ioc.id}
hideAlerts
/>
</Box>
<Box sx={{ flex: 1 }}>
<Typography
noWrap
variant="subtitle1"
component="p"
color="textPrimary"
>
{ioc.namingName ?? ioc.name}
</Typography>
<Typography
noWrap
component="p"
variant="subtitle2"
>
{ioc.activeDeployment?.host?.fqdn || "---"}
</Typography>
</Box>
</Stack>
<KeyValueTable
obj={subset}
variant="overline"
Loading