mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-09 05:25:18 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -202,10 +202,14 @@ export const AddCompose = ({ environmentId, projectName }: Props) => {
|
|||||||
|
|
||||||
<Select
|
<Select
|
||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
defaultValue={field.value || (!isCloud ? "dokploy" : undefined)}
|
defaultValue={
|
||||||
|
field.value || (!isCloud ? "dokploy" : undefined)
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder={!isCloud ? "Dokploy" : "Select a Server"} />
|
<SelectValue
|
||||||
|
placeholder={!isCloud ? "Dokploy" : "Select a Server"}
|
||||||
|
/>
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
|
|||||||
@@ -59,7 +59,10 @@ export const StepOne = ({ setTemplateInfo, templateInfo }: any) => {
|
|||||||
Select the server where you want to deploy (optional)
|
Select the server where you want to deploy (optional)
|
||||||
</Label>
|
</Label>
|
||||||
<Select
|
<Select
|
||||||
value={templateInfo.server?.serverId || (!isCloud ? "dokploy" : undefined)}
|
value={
|
||||||
|
templateInfo.server?.serverId ||
|
||||||
|
(!isCloud ? "dokploy" : undefined)
|
||||||
|
}
|
||||||
onValueChange={(value) => {
|
onValueChange={(value) => {
|
||||||
if (value === "dokploy") {
|
if (value === "dokploy") {
|
||||||
setTemplateInfo({
|
setTemplateInfo({
|
||||||
@@ -78,7 +81,9 @@ export const StepOne = ({ setTemplateInfo, templateInfo }: any) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<SelectTrigger className="w-full">
|
<SelectTrigger className="w-full">
|
||||||
<SelectValue placeholder={!isCloud ? "Dokploy" : "Select a Server"} />
|
<SelectValue
|
||||||
|
placeholder={!isCloud ? "Dokploy" : "Select a Server"}
|
||||||
|
/>
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
@@ -97,7 +102,9 @@ export const StepOne = ({ setTemplateInfo, templateInfo }: any) => {
|
|||||||
{server.name}
|
{server.name}
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
))}
|
))}
|
||||||
<SelectLabel>Servers ({servers?.length + (!isCloud ? 1 : 0)})</SelectLabel>
|
<SelectLabel>
|
||||||
|
Servers ({servers?.length + (!isCloud ? 1 : 0)})
|
||||||
|
</SelectLabel>
|
||||||
</SelectGroup>
|
</SelectGroup>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
|||||||
@@ -198,10 +198,14 @@ export const AddCertificate = () => {
|
|||||||
|
|
||||||
<Select
|
<Select
|
||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
defaultValue={field.value || (!isCloud ? "dokploy" : undefined)}
|
defaultValue={
|
||||||
|
field.value || (!isCloud ? "dokploy" : undefined)
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder={!isCloud ? "Dokploy" : "Select a Server"} />
|
<SelectValue
|
||||||
|
placeholder={!isCloud ? "Dokploy" : "Select a Server"}
|
||||||
|
/>
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user