Skip to content

Commit

Permalink
Allow to choose same ns on different provider
Browse files Browse the repository at this point in the history
Signed-off-by: yzamir <[email protected]>
  • Loading branch information
yaacov committed Apr 8, 2024
1 parent 414b1bb commit 458d8f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ export const PlansCreateForm = ({
key={ns?.name || index}
value={ns?.name}
label={ns?.name ?? String(index)}
isDisabled={namespacesUsedBySelectedVms.includes(ns?.name)}
isDisabled={
namespacesUsedBySelectedVms.includes(ns?.name) &&
plan.spec.provider?.destination?.name === plan.spec.provider.source.name
}
/>
)),
]}
Expand Down

0 comments on commit 458d8f3

Please sign in to comment.