Skip to content

Commit b139d6f

Browse files
[autofix.ci] apply automated fixes
1 parent cddb06f commit b139d6f

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

apps/dokploy/components/dashboard/settings/web-server/update-webserver.tsx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ type ModalState = "idle" | "checking" | "results" | "updating";
3838
const ServiceStatusItem = ({
3939
name,
4040
service,
41-
}: { name: string; service: ServiceStatus }) => (
41+
}: {
42+
name: string;
43+
service: ServiceStatus;
44+
}) => (
4245
<div className="flex items-center gap-2">
4346
{service.status === "healthy" ? (
4447
<CheckCircle2 className="h-4 w-4 text-green-500" />
@@ -47,9 +50,7 @@ const ServiceStatusItem = ({
4750
)}
4851
<span className="text-sm font-medium">{name}</span>
4952
{service.status === "unhealthy" && service.message && (
50-
<span className="text-xs text-muted-foreground">
51-
{service.message}
52-
</span>
53+
<span className="text-xs text-muted-foreground">{service.message}</span>
5354
)}
5455
</div>
5556
);
@@ -153,9 +154,7 @@ export const UpdateWebServer = () => {
153154
{modalState === "idle" && "Are you absolutely sure?"}
154155
{modalState === "checking" && "Verifying Services..."}
155156
{modalState === "results" &&
156-
(allHealthy
157-
? "Ready to Update"
158-
: "Service Issues Detected")}
157+
(allHealthy ? "Ready to Update" : "Service Issues Detected")}
159158
{modalState === "updating" && "Server update in progress"}
160159
</AlertDialogTitle>
161160
<AlertDialogDescription asChild>
@@ -208,8 +207,7 @@ export const UpdateWebServer = () => {
208207

209208
{allHealthy && (
210209
<span className="text-sm text-muted-foreground">
211-
All services are running. You can proceed with the
212-
update.
210+
All services are running. You can proceed with the update.
213211
</span>
214212
)}
215213
</div>
@@ -236,9 +234,7 @@ export const UpdateWebServer = () => {
236234
</AlertDialogHeader>
237235
{modalState === "idle" && (
238236
<AlertDialogFooter>
239-
<AlertDialogCancel onClick={handleClose}>
240-
Cancel
241-
</AlertDialogCancel>
237+
<AlertDialogCancel onClick={handleClose}>Cancel</AlertDialogCancel>
242238
<Button variant="secondary" onClick={handleVerify}>
243239
<RefreshCw className="h-4 w-4" />
244240
Verify Status
@@ -250,9 +246,7 @@ export const UpdateWebServer = () => {
250246
)}
251247
{modalState === "results" && (
252248
<AlertDialogFooter>
253-
<AlertDialogCancel onClick={handleClose}>
254-
Cancel
255-
</AlertDialogCancel>
249+
<AlertDialogCancel onClick={handleClose}>Cancel</AlertDialogCancel>
256250
<Button variant="secondary" onClick={handleVerify}>
257251
<RefreshCw className="h-4 w-4" />
258252
Re-check

0 commit comments

Comments
 (0)