Add Rescan Channel option to channels tab

Co-authored-by: xCyanGrizzly <53275238+xCyanGrizzly@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-05 20:34:53 +00:00
parent 71a2e6a5e8
commit e45de85c69
8 changed files with 94 additions and 7 deletions

View File

@@ -18,6 +18,8 @@ interface DeleteDialogProps {
description?: string;
onConfirm: () => void;
isLoading?: boolean;
confirmLabel?: string;
confirmLoadingLabel?: string;
}
export function DeleteDialog({
@@ -27,6 +29,8 @@ export function DeleteDialog({
description = "This action cannot be undone.",
onConfirm,
isLoading,
confirmLabel = "Delete",
confirmLoadingLabel,
}: DeleteDialogProps) {
return (
<AlertDialog open={open} onOpenChange={onOpenChange}>
@@ -42,7 +46,7 @@ export function DeleteDialog({
disabled={isLoading}
className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
>
{isLoading ? "Deleting..." : "Delete"}
{isLoading ? (confirmLoadingLabel ?? `${confirmLabel}...`) : confirmLabel}
</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>