mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-06 20:22:14 +00:00
refactor: clean up stopGracePeriodSwarm implementation │
│ │ │ - Remove commented debug code │ │ - Reorganize imports for better readability
This commit is contained in:
+1
-3
@@ -7,7 +7,6 @@ import { z } from "zod";
|
|||||||
import { AlertBlock } from "@/components/shared/alert-block";
|
import { AlertBlock } from "@/components/shared/alert-block";
|
||||||
import { CodeEditor } from "@/components/shared/code-editor";
|
import { CodeEditor } from "@/components/shared/code-editor";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Input } from "@/components/ui/input";
|
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
@@ -26,6 +25,7 @@ import {
|
|||||||
FormLabel,
|
FormLabel,
|
||||||
FormMessage,
|
FormMessage,
|
||||||
} from "@/components/ui/form";
|
} from "@/components/ui/form";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
import {
|
import {
|
||||||
Tooltip,
|
Tooltip,
|
||||||
TooltipContent,
|
TooltipContent,
|
||||||
@@ -259,8 +259,6 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
|
|||||||
? JSON.stringify(data.networkSwarm, null, 2)
|
? JSON.stringify(data.networkSwarm, null, 2)
|
||||||
: null,
|
: null,
|
||||||
stopGracePeriodSwarm:
|
stopGracePeriodSwarm:
|
||||||
// type === "application" &&
|
|
||||||
// "stopGracePeriodSwarm" in data &&
|
|
||||||
data.stopGracePeriodSwarm
|
data.stopGracePeriodSwarm
|
||||||
? BigInt(data.stopGracePeriodSwarm)
|
? BigInt(data.stopGracePeriodSwarm)
|
||||||
: null,
|
: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user