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>
|
<AlertDialog>
|
||||||
<AlertDialogTrigger asChild>
|
<AlertDialogTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
|
isLoading={isLoading}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className="w-full border-destructive/50 hover:bg-destructive/10 hover:text-destructive text-destructive"
|
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
|
<AlertDialogAction
|
||||||
onClick={handleRebuild}
|
onClick={handleRebuild}
|
||||||
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
|
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>
|
</AlertDialogAction>
|
||||||
</AlertDialogFooter>
|
</AlertDialogFooter>
|
||||||
</AlertDialogContent>
|
</AlertDialogContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user