diff --git a/frontend/src/components/blueprints/BlueprintDetail.tsx b/frontend/src/components/blueprints/BlueprintDetail.tsx index 7977330b..f2a2a2a4 100644 --- a/frontend/src/components/blueprints/BlueprintDetail.tsx +++ b/frontend/src/components/blueprints/BlueprintDetail.tsx @@ -1,7 +1,7 @@ import { useEffect, useState, useCallback } from 'react'; import { ChevronLeft, MoreHorizontal, Pencil, Play, Trash2 } from 'lucide-react'; import { Sheet, SheetContent, SheetHeader, SheetTitle } from '@/components/ui/sheet'; -import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from '@/components/ui/dialog'; +import { Modal, ModalDestructiveHeader, ModalBody, ModalFooter } from '@/components/ui/modal'; import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; import { Skeleton } from '@/components/ui/skeleton'; @@ -321,20 +321,16 @@ export function BlueprintDetail({ blueprintId, open, onOpenChange, onChanged, ca /> )} {blueprint && ( - { if (!o) { setDeleteOpen(false); setDeleteConfirmText(''); } }}> - - -
- - Delete blueprint -
- - Permanently delete {blueprint.name}? - - - Stateless deployments will be withdrawn first. Stateful deployments must be withdrawn explicitly through the deployment table before delete; the API will refuse otherwise. - -
+ { if (!o) { setDeleteOpen(false); setDeleteConfirmText(''); } }} size="md"> + + +

+ Stateless deployments will be withdrawn first. Stateful deployments must be withdrawn explicitly through the deployment table before delete. +

Type {blueprint.name} to confirm. @@ -347,21 +343,25 @@ export function BlueprintDetail({ blueprintId, open, onOpenChange, onChanged, ca disabled={submitting} />

- - + } + primary={ - -
-
+ } + /> + )} diff --git a/frontend/src/components/blueprints/DeploymentsTab.tsx b/frontend/src/components/blueprints/DeploymentsTab.tsx index 3738241a..559b20ca 100644 --- a/frontend/src/components/blueprints/DeploymentsTab.tsx +++ b/frontend/src/components/blueprints/DeploymentsTab.tsx @@ -1,7 +1,5 @@ import { useCallback, useEffect, useState } from 'react'; -import { - Dialog, DialogContent, DialogHeader, DialogTitle, -} from '@/components/ui/dialog'; +import { Modal, ModalHeader, ModalBody } from '@/components/ui/modal'; import { toast } from '@/components/ui/toast-store'; import { type BlueprintListItem, @@ -117,16 +115,13 @@ export function DeploymentsTab() { /> )} - - - - - New Blueprint - - - Declare a fleet-wide compose template - - + + + - - + + ); }