Skip to content

Commit d96df77

Browse files
committed
minor-bug-fixes
1 parent c42846c commit d96df77

2 files changed

Lines changed: 20 additions & 11 deletions

File tree

frontend/src/features/containers/components/container-details-sheet.test.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ describe("ContainerDetailsSheet", () => {
199199
/>,
200200
);
201201

202+
fireEvent.click(
203+
await screen.findByRole("button", { name: /env vars/i }),
204+
);
205+
202206
fireEvent.click(
203207
await screen.findByRole("button", { name: /update container id/i }),
204208
);

frontend/src/features/containers/components/containers-dashboard.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
AlertDialogHeader,
1313
AlertDialogTitle,
1414
} from "@/components/ui/alert-dialog";
15+
import { Button } from "@/components/ui/button";
1516
import { Spinner } from "@/components/ui/spinner";
1617
import {
1718
removeContainer,
@@ -575,38 +576,42 @@ export function ContainersDashboard() {
575576
{selectedContainerIds.length} selected
576577
</p>
577578
<div className="flex items-center gap-3 text-sm">
578-
<button type="button" onClick={() => setSelectedContainerIds([])}>
579+
<Button
580+
type="button"
581+
variant="outline"
582+
onClick={() => setSelectedContainerIds([])}
583+
>
579584
Clear
580-
</button>
581-
<button
585+
</Button>
586+
<Button
582587
type="button"
583588
disabled={isReadOnly}
584589
onClick={() => handleBatchAction("start")}
585590
>
586591
Start
587-
</button>
588-
<button
592+
</Button>
593+
<Button
589594
type="button"
590595
disabled={isReadOnly}
591596
onClick={() => handleBatchAction("stop")}
592597
>
593598
Stop
594-
</button>
595-
<button
599+
</Button>
600+
<Button
596601
type="button"
597602
disabled={isReadOnly}
598603
onClick={() => handleBatchAction("restart")}
599604
>
600605
Restart
601-
</button>
602-
<button
606+
</Button>
607+
<Button
603608
type="button"
604-
className="text-destructive"
609+
variant="destructive"
605610
disabled={isReadOnly}
606611
onClick={() => handleBatchAction("remove")}
607612
>
608613
Delete
609-
</button>
614+
</Button>
610615
</div>
611616
</div>
612617
)}

0 commit comments

Comments
 (0)