mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(databases): improve rebuild database button loading state
This commit is contained in:
@@ -71,6 +71,7 @@ export const RebuildDatabase = ({ id, type }: Props) => {
|
||||
<AlertDialog>
|
||||
<AlertDialogTrigger asChild>
|
||||
<Button
|
||||
isLoading={isLoading}
|
||||
variant="outline"
|
||||
className="w-full border-destructive/50 hover:bg-destructive/10 hover:text-destructive text-destructive"
|
||||
>
|
||||
@@ -102,9 +103,11 @@ export const RebuildDatabase = ({ id, type }: Props) => {
|
||||
<AlertDialogAction
|
||||
onClick={handleRebuild}
|
||||
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
||||
disabled={isLoading}
|
||||
asChild
|
||||
>
|
||||
{isLoading ? "Rebuilding..." : "Yes, rebuild database"}
|
||||
<Button isLoading={isLoading} type="submit">
|
||||
Yes, rebuild database
|
||||
</Button>
|
||||
</AlertDialogAction>
|
||||
</AlertDialogFooter>
|
||||
</AlertDialogContent>
|
||||
|
||||
Reference in New Issue
Block a user