Skip to content

Commit 458d8f3

Browse files
committed
Allow to choose same ns on different provider
Signed-off-by: yzamir <[email protected]>
1 parent 414b1bb commit 458d8f3

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)