mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: allow to se a empty registry
This commit is contained in:
@@ -80,7 +80,7 @@ export const ShowClusterSettings = ({ applicationId }: Props) => {
|
|||||||
const onSubmit = async (data: AddCommand) => {
|
const onSubmit = async (data: AddCommand) => {
|
||||||
await mutateAsync({
|
await mutateAsync({
|
||||||
applicationId,
|
applicationId,
|
||||||
registryId: data?.registryId,
|
registryId: data?.registryId === "none" ? null : data?.registryId,
|
||||||
replicas: data?.replicas,
|
replicas: data?.replicas,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
@@ -177,6 +177,7 @@ export const ShowClusterSettings = ({ applicationId }: Props) => {
|
|||||||
{registry.registryName}
|
{registry.registryName}
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
))}
|
))}
|
||||||
|
<SelectItem value={"none"}>None</SelectItem>
|
||||||
<SelectLabel>
|
<SelectLabel>
|
||||||
Registries ({registries?.length})
|
Registries ({registries?.length})
|
||||||
</SelectLabel>
|
</SelectLabel>
|
||||||
|
|||||||
Reference in New Issue
Block a user