diff --git a/src/components/molecules/ColapsibleRow.tsx b/src/components/molecules/ColapsibleRow.tsx index ebb734c5..e942910d 100644 --- a/src/components/molecules/ColapsibleRow.tsx +++ b/src/components/molecules/ColapsibleRow.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from "react"; import * as React from "react"; import TableRow from "@mui/material/TableRow"; import TableCell from "@mui/material/TableCell"; -import { Box, Collapse, IconButton, Typography } from "@mui/material"; +import { Box, Collapse, IconButton, Typography, Chip } from "@mui/material"; import { DeleteForever, KeyboardArrowDown, KeyboardArrowUp } from "@mui/icons-material"; import { deleteRunFromStorage } from "../../api/storage"; import { columns, Data } from "./RunsTable"; @@ -56,11 +56,20 @@ export const CollapsibleRow = ({ row, handleDelete, isOpen, currentLog, abortRun if (value !== undefined) { return ( - {value} + {value} ); } else { switch (column.id) { + case 'robotStatus': + return ( + + {row.status === 'success' && } + {row.status === 'running' && } + {row.status === 'scheduled' && } + {row.status === 'failed' && } + + ) case 'delete': return (