From d81f3653ec0440c58a192f28b00e700fb0fe32b2 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Fri, 31 Oct 2025 22:16:31 +0100 Subject: [PATCH] feat: run backup now --- .../details/components/schedule-summary.tsx | 9 +++++-- .../app/modules/details/tabs/backups.tsx | 25 +++++++++++++++++++ apps/server/src/core/constants.ts | 2 +- docker-compose.yml | 3 +-- 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/apps/client/app/modules/details/components/schedule-summary.tsx b/apps/client/app/modules/details/components/schedule-summary.tsx index cdaec1b..e264c55 100644 --- a/apps/client/app/modules/details/components/schedule-summary.tsx +++ b/apps/client/app/modules/details/components/schedule-summary.tsx @@ -1,5 +1,5 @@ import { useQuery } from "@tanstack/react-query"; -import { Database, Pencil } from "lucide-react"; +import { Database, Pencil, Play } from "lucide-react"; import { useMemo } from "react"; import { listSnapshotsOptions } from "~/api-client/@tanstack/react-query.gen"; import { ByteSize } from "~/components/bytes-size"; @@ -14,11 +14,12 @@ type Props = { schedule: BackupSchedule; repository: Repository; handleToggleEnabled: (enabled: boolean) => void; + handleRunBackupNow: () => void; setIsEditMode: (isEdit: boolean) => void; }; export const ScheduleSummary = (props: Props) => { - const { volume, schedule, repository, handleToggleEnabled, setIsEditMode } = props; + const { volume, schedule, repository, handleToggleEnabled, handleRunBackupNow, setIsEditMode } = props; const { data: snapshots, isLoading: loadingSnapshots } = useQuery({ ...listSnapshotsOptions({ @@ -61,6 +62,10 @@ export const ScheduleSummary = (props: Props) => {
+