mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-17 01:15:19 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -38,7 +38,10 @@ type ModalState = "idle" | "checking" | "results" | "updating";
|
|||||||
const ServiceStatusItem = ({
|
const ServiceStatusItem = ({
|
||||||
name,
|
name,
|
||||||
service,
|
service,
|
||||||
}: { name: string; service: ServiceStatus }) => (
|
}: {
|
||||||
|
name: string;
|
||||||
|
service: ServiceStatus;
|
||||||
|
}) => (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
{service.status === "healthy" ? (
|
{service.status === "healthy" ? (
|
||||||
<CheckCircle2 className="h-4 w-4 text-green-500" />
|
<CheckCircle2 className="h-4 w-4 text-green-500" />
|
||||||
@@ -47,9 +50,7 @@ const ServiceStatusItem = ({
|
|||||||
)}
|
)}
|
||||||
<span className="text-sm font-medium">{name}</span>
|
<span className="text-sm font-medium">{name}</span>
|
||||||
{service.status === "unhealthy" && service.message && (
|
{service.status === "unhealthy" && service.message && (
|
||||||
<span className="text-xs text-muted-foreground">
|
<span className="text-xs text-muted-foreground">— {service.message}</span>
|
||||||
— {service.message}
|
|
||||||
</span>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -153,9 +154,7 @@ export const UpdateWebServer = () => {
|
|||||||
{modalState === "idle" && "Are you absolutely sure?"}
|
{modalState === "idle" && "Are you absolutely sure?"}
|
||||||
{modalState === "checking" && "Verifying Services..."}
|
{modalState === "checking" && "Verifying Services..."}
|
||||||
{modalState === "results" &&
|
{modalState === "results" &&
|
||||||
(allHealthy
|
(allHealthy ? "Ready to Update" : "Service Issues Detected")}
|
||||||
? "Ready to Update"
|
|
||||||
: "Service Issues Detected")}
|
|
||||||
{modalState === "updating" && "Server update in progress"}
|
{modalState === "updating" && "Server update in progress"}
|
||||||
</AlertDialogTitle>
|
</AlertDialogTitle>
|
||||||
<AlertDialogDescription asChild>
|
<AlertDialogDescription asChild>
|
||||||
@@ -208,8 +207,7 @@ export const UpdateWebServer = () => {
|
|||||||
|
|
||||||
{allHealthy && (
|
{allHealthy && (
|
||||||
<span className="text-sm text-muted-foreground">
|
<span className="text-sm text-muted-foreground">
|
||||||
All services are running. You can proceed with the
|
All services are running. You can proceed with the update.
|
||||||
update.
|
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -236,9 +234,7 @@ export const UpdateWebServer = () => {
|
|||||||
</AlertDialogHeader>
|
</AlertDialogHeader>
|
||||||
{modalState === "idle" && (
|
{modalState === "idle" && (
|
||||||
<AlertDialogFooter>
|
<AlertDialogFooter>
|
||||||
<AlertDialogCancel onClick={handleClose}>
|
<AlertDialogCancel onClick={handleClose}>Cancel</AlertDialogCancel>
|
||||||
Cancel
|
|
||||||
</AlertDialogCancel>
|
|
||||||
<Button variant="secondary" onClick={handleVerify}>
|
<Button variant="secondary" onClick={handleVerify}>
|
||||||
<RefreshCw className="h-4 w-4" />
|
<RefreshCw className="h-4 w-4" />
|
||||||
Verify Status
|
Verify Status
|
||||||
@@ -250,9 +246,7 @@ export const UpdateWebServer = () => {
|
|||||||
)}
|
)}
|
||||||
{modalState === "results" && (
|
{modalState === "results" && (
|
||||||
<AlertDialogFooter>
|
<AlertDialogFooter>
|
||||||
<AlertDialogCancel onClick={handleClose}>
|
<AlertDialogCancel onClick={handleClose}>Cancel</AlertDialogCancel>
|
||||||
Cancel
|
|
||||||
</AlertDialogCancel>
|
|
||||||
<Button variant="secondary" onClick={handleVerify}>
|
<Button variant="secondary" onClick={handleVerify}>
|
||||||
<RefreshCw className="h-4 w-4" />
|
<RefreshCw className="h-4 w-4" />
|
||||||
Re-check
|
Re-check
|
||||||
|
|||||||
Reference in New Issue
Block a user