diff --git a/interface/src/project/DashboardData.tsx b/interface/src/project/DashboardData.tsx index eccda938c..4023227fc 100644 --- a/interface/src/project/DashboardData.tsx +++ b/interface/src/project/DashboardData.tsx @@ -20,8 +20,7 @@ import { ListItem, ListItemText, Grid, - useMediaQuery, - Tooltip + useMediaQuery } from '@mui/material'; import TableCell, { tableCellClasses } from '@mui/material/TableCell'; @@ -38,6 +37,8 @@ import CancelIcon from '@mui/icons-material/Cancel'; import SendIcon from '@mui/icons-material/TrendingFlat'; import SaveIcon from '@mui/icons-material/Save'; import RemoveIcon from '@mui/icons-material/RemoveCircleOutline'; +import FavoriteIcon from '@mui/icons-material/Favorite'; +import PlayArrowIcon from '@mui/icons-material/PlayArrow'; import DeviceIcon from './DeviceIcon'; @@ -219,7 +220,7 @@ const DashboardData: FC = () => { {deviceValue.l && ( { {!deviceValue.l && ( { }; const renderNameCell = (dv: DeviceValue) => { + var mask = Number(dv.n.slice(0, 2)); + var name = dv.n.slice(2); if (dv.v === undefined && dv.c) { return ( - - command: {dv.n} + + {name}  + ); } + + if ((mask & 8) === 8) { + return ( + + {name}  + + + ); + } + return ( - {dv.n} + {name} ); }; @@ -526,9 +540,7 @@ const DashboardData: FC = () => { {dv.c && me.admin && ( - - - + )}