Divide per group only when there is at least one group defined
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8b16ce0c5d
commit
9755bacc55
@ -112,21 +112,26 @@ function VMListWidget(p: {
|
|||||||
<TableBody>
|
<TableBody>
|
||||||
{p.groups.map((g, num) => (
|
{p.groups.map((g, num) => (
|
||||||
<React.Fragment key={num}>
|
<React.Fragment key={num}>
|
||||||
<TableRow>
|
{p.groups.length > 1 && (
|
||||||
<TableCell
|
<TableRow>
|
||||||
style={{ paddingBottom: 2, paddingTop: 2 }}
|
<TableCell
|
||||||
colSpan={6}
|
style={{ paddingBottom: 2, paddingTop: 2 }}
|
||||||
>
|
colSpan={6}
|
||||||
<IconButton size="small" onClick={() => toggleHiddenGroup(g)}>
|
>
|
||||||
{!hiddenGroups?.has(g) ? (
|
<IconButton
|
||||||
<KeyboardArrowUpIcon />
|
size="small"
|
||||||
) : (
|
onClick={() => toggleHiddenGroup(g)}
|
||||||
<KeyboardArrowDownIcon />
|
>
|
||||||
)}
|
{!hiddenGroups?.has(g) ? (
|
||||||
</IconButton>
|
<KeyboardArrowUpIcon />
|
||||||
{g ?? "default"}
|
) : (
|
||||||
</TableCell>
|
<KeyboardArrowDownIcon />
|
||||||
</TableRow>
|
)}
|
||||||
|
</IconButton>
|
||||||
|
{g ?? "default"}
|
||||||
|
</TableCell>
|
||||||
|
</TableRow>
|
||||||
|
)}
|
||||||
|
|
||||||
{!hiddenGroups.has(g) &&
|
{!hiddenGroups.has(g) &&
|
||||||
p.list
|
p.list
|
||||||
|
Loading…
Reference in New Issue
Block a user