feat(docker): add support for standalone container log retrieval

This commit is contained in:
Mauricio Siu
2025-02-25 23:04:19 -06:00
parent 203da1a8fe
commit 29c1e4691e
4 changed files with 26 additions and 4 deletions
@@ -37,13 +37,20 @@ interface Props {
appName: string;
children?: React.ReactNode;
serverId?: string;
type: "standalone" | "swarm";
}
export const ShowModalLogs = ({ appName, children, serverId }: Props) => {
export const ShowModalLogs = ({
appName,
children,
serverId,
type = "swarm",
}: Props) => {
const { data, isLoading } = api.docker.getContainersByAppLabel.useQuery(
{
appName,
serverId,
type,
},
{
enabled: !!appName,