mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
fix: polish queue visibility UI and biome compliance
This commit is contained in:
parent
2a4a3551f0
commit
dfc3a5ffd3
@ -12,10 +12,11 @@ import {
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@/components/ui/dialog";
|
||||
const QUEUED_LOG_MESSAGE = "Waiting for worker to pick job...";
|
||||
import { TerminalLine } from "../../docker/logs/terminal-line";
|
||||
import { type LogLine, parseLogs } from "../../docker/logs/utils";
|
||||
|
||||
const QUEUED_LOG_MESSAGE = "Waiting for worker to pick job...";
|
||||
|
||||
interface Props {
|
||||
logPath: string | null;
|
||||
open: boolean;
|
||||
|
||||
@ -105,7 +105,10 @@ export const ComposeActions = ({ composeId }: Props) => {
|
||||
>
|
||||
<Button
|
||||
variant="secondary"
|
||||
isLoading={data?.composeStatus === "running"}
|
||||
isLoading={
|
||||
data?.composeStatus === "running" ||
|
||||
data?.composeStatus === "queued"
|
||||
}
|
||||
className="flex items-center gap-1.5 group focus-visible:ring-2 focus-visible:ring-offset-2"
|
||||
>
|
||||
<Tooltip>
|
||||
|
||||
@ -127,7 +127,7 @@ export type Services = {
|
||||
description?: string | null;
|
||||
id: string;
|
||||
createdAt: string;
|
||||
status?: "idle" | "running" | "done" | "error" | "queued";
|
||||
status?: "idle" | "queued" | "running" | "done" | "error";
|
||||
lastDeployDate?: Date | null;
|
||||
icon?: string | null;
|
||||
};
|
||||
|
||||
@ -22,10 +22,7 @@ export const initCancelDeployments = async () => {
|
||||
.from(deployments)
|
||||
.leftJoin(schedules, eq(deployments.scheduleId, schedules.scheduleId))
|
||||
.where(
|
||||
or(
|
||||
eq(deployments.status, "running"),
|
||||
eq(deployments.status, "queued"),
|
||||
),
|
||||
or(eq(deployments.status, "running"), eq(deployments.status, "queued")),
|
||||
);
|
||||
|
||||
const deploymentIdsToCancel = runningDeployments
|
||||
@ -92,10 +89,7 @@ export const initCancelDeployments = async () => {
|
||||
.update(previewDeployments)
|
||||
.set({ previewStatus: "idle" })
|
||||
.where(
|
||||
inArray(
|
||||
previewDeployments.previewDeploymentId,
|
||||
previewDeploymentIds,
|
||||
),
|
||||
inArray(previewDeployments.previewDeploymentId, previewDeploymentIds),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user