mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Update Props interface in RestoreBackup and ShowBackups components to make databaseType optional, enhancing flexibility in component usage.
This commit is contained in:
@@ -71,7 +71,7 @@ type DatabaseType =
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
id: string;
|
id: string;
|
||||||
databaseType: DatabaseType;
|
databaseType?: DatabaseType;
|
||||||
serverId?: string | null;
|
serverId?: string | null;
|
||||||
backupType?: "database" | "compose";
|
backupType?: "database" | "compose";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import { AlertBlock } from "@/components/shared/alert-block";
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
id: string;
|
id: string;
|
||||||
databaseType: Exclude<ServiceType, "application" | "redis"> | "web-server";
|
databaseType?: Exclude<ServiceType, "application" | "redis"> | "web-server";
|
||||||
backupType?: "database" | "compose";
|
backupType?: "database" | "compose";
|
||||||
}
|
}
|
||||||
export const ShowBackups = ({
|
export const ShowBackups = ({
|
||||||
|
|||||||
Reference in New Issue
Block a user