From 401f8d9be4dab55f55b33ffc2aef5df950c37e1f Mon Sep 17 00:00:00 2001 From: vicke4 Date: Mon, 3 Mar 2025 02:14:52 +0530 Subject: [PATCH] fix(ui): showing manual backup indicator only against the current backup --- .../components/dashboard/database/backups/show-backups.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx index 616745e1..b4606583 100644 --- a/apps/dokploy/components/dashboard/database/backups/show-backups.tsx +++ b/apps/dokploy/components/dashboard/database/backups/show-backups.tsx @@ -20,12 +20,14 @@ import { toast } from "sonner"; import type { ServiceType } from "../../application/advanced/show-resources"; import { AddBackup } from "./add-backup"; import { UpdateBackup } from "./update-backup"; +import { useState } from "react"; interface Props { id: string; type: Exclude; } export const ShowBackups = ({ id, type }: Props) => { + const [activeManualBackup, setActiveManualBackup] = useState(); const queryMap = { postgres: () => api.postgres.one.useQuery({ postgresId: id }, { enabled: !!id }), @@ -151,8 +153,9 @@ export const ShowBackups = ({ id, type }: Props) => {