mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
formatting
This commit is contained in:
committed by
GitHub
parent
2f9448dde9
commit
8f83ecb9ef
@@ -126,7 +126,10 @@ export const AddApplication = ({ projectId, projectName }: Props) => {
|
|||||||
{...field}
|
{...field}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const val = e.target.value?.trim() || "";
|
const val = e.target.value?.trim() || "";
|
||||||
form.setValue("appName", `${slug}-${val.toLowerCase().replaceAll(" ", "-")}`);
|
form.setValue(
|
||||||
|
"appName",
|
||||||
|
`${slug}-${val.toLowerCase().replaceAll(" ", "-")}`
|
||||||
|
);
|
||||||
field.onChange(val);
|
field.onChange(val);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -138,7 +138,10 @@ export const AddCompose = ({ projectId, projectName }: Props) => {
|
|||||||
{...field}
|
{...field}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const val = e.target.value?.trim() || "";
|
const val = e.target.value?.trim() || "";
|
||||||
form.setValue("appName", `${slug}-${val.toLowerCase()}`);
|
form.setValue(
|
||||||
|
"appName",
|
||||||
|
`${slug}-${val.toLowerCase()}`
|
||||||
|
);
|
||||||
field.onChange(val);
|
field.onChange(val);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -342,7 +342,10 @@ export const AddDatabase = ({ projectId, projectName }: Props) => {
|
|||||||
{...field}
|
{...field}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const val = e.target.value?.trim() || "";
|
const val = e.target.value?.trim() || "";
|
||||||
form.setValue("appName", `${slug}-${val.toLowerCase()}`);
|
form.setValue(
|
||||||
|
"appName",
|
||||||
|
`${slug}-${val.toLowerCase()}`
|
||||||
|
);
|
||||||
field.onChange(val);
|
field.onChange(val);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user