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