mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-18 18:05:18 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -86,9 +86,7 @@ export const ShowComposeContainers = ({
|
|||||||
onClick={() => refetch()}
|
onClick={() => refetch()}
|
||||||
disabled={isPending}
|
disabled={isPending}
|
||||||
>
|
>
|
||||||
<RefreshCw
|
<RefreshCw className={`h-4 w-4 ${isPending ? "animate-spin" : ""}`} />
|
||||||
className={`h-4 w-4 ${isPending ? "animate-spin" : ""}`}
|
|
||||||
/>
|
|
||||||
</Button>
|
</Button>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
@@ -253,9 +251,7 @@ const ContainerRow = ({
|
|||||||
<DialogContent className="sm:max-w-7xl">
|
<DialogContent className="sm:max-w-7xl">
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>View Logs</DialogTitle>
|
<DialogTitle>View Logs</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>Logs for {container.name}</DialogDescription>
|
||||||
Logs for {container.name}
|
|
||||||
</DialogDescription>
|
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<div className="flex flex-col gap-4 pt-2.5">
|
<div className="flex flex-col gap-4 pt-2.5">
|
||||||
<DockerLogsId
|
<DockerLogsId
|
||||||
|
|||||||
+1
-3
@@ -234,9 +234,7 @@ const Service = (
|
|||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
)}
|
)}
|
||||||
{permissions?.docker.read && (
|
{permissions?.docker.read && (
|
||||||
<TabsTrigger value="containers">
|
<TabsTrigger value="containers">Containers</TabsTrigger>
|
||||||
Containers
|
|
||||||
</TabsTrigger>
|
|
||||||
)}
|
)}
|
||||||
{permissions?.service.create && (
|
{permissions?.service.create && (
|
||||||
<TabsTrigger value="backups">Backups</TabsTrigger>
|
<TabsTrigger value="backups">Backups</TabsTrigger>
|
||||||
|
|||||||
@@ -447,10 +447,7 @@ export const containerStart = async (
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const containerStop = async (
|
export const containerStop = async (containerId: string, serverId?: string) => {
|
||||||
containerId: string,
|
|
||||||
serverId?: string,
|
|
||||||
) => {
|
|
||||||
const command = `docker container stop ${containerId}`;
|
const command = `docker container stop ${containerId}`;
|
||||||
const { stderr } = serverId
|
const { stderr } = serverId
|
||||||
? await execAsyncRemote(serverId, command)
|
? await execAsyncRemote(serverId, command)
|
||||||
@@ -462,10 +459,7 @@ export const containerStop = async (
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const containerKill = async (
|
export const containerKill = async (containerId: string, serverId?: string) => {
|
||||||
containerId: string,
|
|
||||||
serverId?: string,
|
|
||||||
) => {
|
|
||||||
const command = `docker container kill ${containerId}`;
|
const command = `docker container kill ${containerId}`;
|
||||||
const { stderr } = serverId
|
const { stderr } = serverId
|
||||||
? await execAsyncRemote(serverId, command)
|
? await execAsyncRemote(serverId, command)
|
||||||
|
|||||||
Reference in New Issue
Block a user