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