diff --git a/frontend/src/components/config/util.tsx b/frontend/src/components/config/util.tsx
index 8d55eb361..9b05a9810 100644
--- a/frontend/src/components/config/util.tsx
+++ b/frontend/src/components/config/util.tsx
@@ -340,6 +340,8 @@ export const ProviderSelector = ({
if (value === "Custom") {
onSelect("");
setCustomMode(true);
+ } else if (value === "None") {
+ onSelect("");
} else {
onSelect(value);
}
@@ -365,7 +367,8 @@ export const ProviderSelector = ({
!providers.includes(selected) && (
{selected}
)}
- {showCustom && Custom}
+ {showCustom && Custom}
+ {!showCustom && None}
);
@@ -908,44 +911,45 @@ export const ImageRegistryConfig = ({
/>
- {organizations.length > 0 && (
-
-
- setRegistry({
- ...registry,
- organization,
- })
- }
- disabled={disabled}
- />
-
- )}
- {registry && (
-
-
- setRegistry({
- ...registry,
- account,
- })
- }
- disabled={disabled}
- />
-
+
+ {registry?.domain && (
+ <>
+
+
+ setRegistry({
+ ...registry,
+ account,
+ })
+ }
+ disabled={disabled}
+ />
+
+
+
+ setRegistry({
+ ...registry,
+ organization,
+ })
+ }
+ disabled={disabled}
+ />
+
+ >
)}
>
);
@@ -963,7 +967,7 @@ const OrganizationSelector = ({
disabled: boolean;
}) => {
const [customMode, setCustomMode] = useState(false);
- if (customMode || organizations.length === 0) {
+ if (customMode) {
return (