| @@ -87,29 +87,29 @@ export const RebuildDatabase = ({ id, type }: Props) => { · 86 unmodified lines |
| 87 | 87 | <AlertTriangle className="h-5 w-5 text-destructive" /> |
| 88 | 88 | Are you absolutely sure? |
| 89 | 89 | </AlertDialogTitle> |
| 90 | | − <AlertDialogDescription className="space-y-2"> |
| 91 | | − <p>This action will:</p> |
| 92 | | − <ul className="list-disc list-inside space-y-1"> |
| 93 | | − <li>Stop the current database service</li> |
| 94 | | − <li>Delete all existing data and volumes</li> |
| 95 | | − <li>Reset to the default configuration</li> |
| 96 | | − <li>Restart the service with a clean state</li> |
| 97 | | − </ul> |
| 98 | | − <p className="font-medium text-destructive mt-4"> |
| 99 | | − This action cannot be undone. |
| 100 | | − </p> |
| 90 | + <AlertDialogDescription asChild> |
| 91 | + <div className="space-y-2"> |
| 92 | + <p>This action will:</p> |
| 93 | + <ul className="list-disc list-inside space-y-1"> |
| 94 | + <li>Stop the current database service</li> |
| 95 | + <li>Delete all existing data and volumes</li> |
| 96 | + <li>Reset to the default configuration</li> |
| 97 | + <li>Restart the service with a clean state</li> |
| 98 | + </ul> |
| 99 | + <p className="font-medium text-destructive mt-4"> |
| 100 | + This action cannot be undone. |
| 101 | + </p> |
| 102 | + </div> |
| 101 | 103 | </AlertDialogDescription> |
| 102 | 104 | </AlertDialogHeader> |
| 103 | 105 | <AlertDialogFooter> |
| 104 | 106 | <AlertDialogCancel>Cancel</AlertDialogCancel> |
| 105 | 107 | <AlertDialogAction |
| 106 | 108 | onClick={handleRebuild} |
| 107 | | − className="bg-destructive text-destructive-foreground hover:bg-destructive/90" |
| 108 | | − asChild |
| 109 | + disabled={isPending} |
| 110 | + variant="destructive" |
| 109 | 111 | > |
| 110 | | − <Button isLoading={isPending} type="submit"> |
| 111 | | − Yes, rebuild database |
| 112 | | − </Button> |
| 112 | + Yes, rebuild database |
| 113 | 113 | </AlertDialogAction> |
| 114 | 114 | </AlertDialogFooter> |
| 115 | 115 | </AlertDialogContent> |