Skip to content

Commit 3fd9e37

Browse files
authored
Merge pull request #1078 from yaacov/allow-same-namespace-when-plan-to-remote-ocp
🐞 Allow to choose same ns on different provider
2 parents 414b1bb + 458d8f3 commit 3fd9e37

File tree

1 file changed

+4
-1
lines changed
  • packages/forklift-console-plugin/src/modules/Providers/views/migrate/components

1 file changed

+4
-1
lines changed

packages/forklift-console-plugin/src/modules/Providers/views/migrate/components/PlansCreateForm.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ export const PlansCreateForm = ({
291291
key={ns?.name || index}
292292
value={ns?.name}
293293
label={ns?.name ?? String(index)}
294-
isDisabled={namespacesUsedBySelectedVms.includes(ns?.name)}
294+
isDisabled={
295+
namespacesUsedBySelectedVms.includes(ns?.name) &&
296+
plan.spec.provider?.destination?.name === plan.spec.provider.source.name
297+
}
295298
/>
296299
)),
297300
]}

0 commit comments

Comments
 (0)