feat(backup): add enterprise backup & restore foundation
This commit is contained in:
parent
7835d3ca75
commit
6c917df515
30 changed files with 1538 additions and 61 deletions
|
|
@ -18,6 +18,8 @@ type Props = {
|
|||
description: string;
|
||||
confirmLabel?: string;
|
||||
pending?: boolean;
|
||||
pendingLabel?: string;
|
||||
confirmDisabled?: boolean;
|
||||
children?: ReactNode;
|
||||
onOpenChange: (open: boolean) => void;
|
||||
onConfirm: () => void;
|
||||
|
|
@ -29,6 +31,8 @@ export default function ConfirmDialog({
|
|||
description,
|
||||
confirmLabel = "Löschen",
|
||||
pending = false,
|
||||
pendingLabel = "Wird gelöscht...",
|
||||
confirmDisabled = false,
|
||||
children,
|
||||
onOpenChange,
|
||||
onConfirm,
|
||||
|
|
@ -56,9 +60,9 @@ export default function ConfirmDialog({
|
|||
type="button"
|
||||
variant="destructive"
|
||||
onClick={onConfirm}
|
||||
disabled={pending}
|
||||
disabled={pending || confirmDisabled}
|
||||
>
|
||||
{pending ? "Wird gelöscht..." : confirmLabel}
|
||||
{pending ? pendingLabel : confirmLabel}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue