mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-22 03:48:46 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -127,7 +127,10 @@ export const HandleRegistry = ({ registryId }: Props) => {
|
|||||||
AddRegistrySchema.refine(
|
AddRegistrySchema.refine(
|
||||||
(data) => {
|
(data) => {
|
||||||
// When creating a new registry, password is required
|
// When creating a new registry, password is required
|
||||||
if (!data.isEditing && (!data.password || data.password.length === 0)) {
|
if (
|
||||||
|
!data.isEditing &&
|
||||||
|
(!data.password || data.password.length === 0)
|
||||||
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -285,12 +288,11 @@ export const HandleRegistry = ({ registryId }: Props) => {
|
|||||||
name="password"
|
name="password"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>
|
<FormLabel>Password{registryId && " (Optional)"}</FormLabel>
|
||||||
Password{registryId && " (Optional)"}
|
|
||||||
</FormLabel>
|
|
||||||
{registryId && (
|
{registryId && (
|
||||||
<FormDescription>
|
<FormDescription>
|
||||||
Leave blank to keep existing password. Enter new password to test or update it.
|
Leave blank to keep existing password. Enter new
|
||||||
|
password to test or update it.
|
||||||
</FormDescription>
|
</FormDescription>
|
||||||
)}
|
)}
|
||||||
<FormControl>
|
<FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user