mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-22 03:48:46 +00:00
feat: Add stop_grace_period to swarm settings, test layout
This commit is contained in:
+29
-5
@@ -762,12 +762,36 @@ export const AddSwarmSettings = ({ applicationId }: Props) => {
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem className="relative max-lg:px-4 lg:pr-6 ">
|
<FormItem className="relative max-lg:px-4 lg:pr-6 ">
|
||||||
<FormLabel>Stop Grace Period</FormLabel>
|
<FormLabel>Stop Grace Period</FormLabel>
|
||||||
<FormDescription>
|
<TooltipProvider delayDuration={0}>
|
||||||
Time to wait for the container to stop gracefully.
|
<Tooltip>
|
||||||
</FormDescription>
|
<TooltipTrigger asChild>
|
||||||
|
<FormDescription className="break-all w-fit flex flex-row gap-1 items-center">
|
||||||
|
Check the format
|
||||||
|
<HelpCircle className="size-4 text-muted-foreground" />
|
||||||
|
</FormDescription>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent
|
||||||
|
className="w-full z-[999]"
|
||||||
|
align="start"
|
||||||
|
side="bottom"
|
||||||
|
>
|
||||||
|
<code>
|
||||||
|
<pre>
|
||||||
|
{`Duration string format:
|
||||||
|
• "30s" - 30 seconds
|
||||||
|
• "2m" - 2 minutes
|
||||||
|
• "1h" - 1 hour
|
||||||
|
• "0" - no grace period`}
|
||||||
|
</pre>
|
||||||
|
</code>
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
</TooltipProvider>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<CodeEditor
|
||||||
placeholder="e.g, 30s"
|
language="properties"
|
||||||
|
placeholder="30s"
|
||||||
|
className="h-[8rem] font-mono"
|
||||||
{...field}
|
{...field}
|
||||||
value={field?.value || ""}
|
value={field?.value || ""}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user