Skip to content

Commit

Permalink
Merge pull request #751 from gravitl/NET-1520
Browse files Browse the repository at this point in the history
fix(NET-1520):  do not show relay field for update enrollment key for CE
  • Loading branch information
Aceix committed Sep 11, 2024
2 parents e6b9fdd + e93145d commit 46e7ab6
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,19 @@ export default function UpdateEnrollmentKeyModal({
<Input placeholder="Name" disabled />
</Form.Item>

<Form.Item name="relay" label="Relay" data-nmui-intercom="update-enrollment-key-form_relays">
<Select
placeholder="Select relay to join with key"
allowClear
style={{ width: '100%' }}
options={[
{ label: 'Select relay to join with key', value: NULL_NODE_ID, disabled: true },
...relays.map((node) => ({ label: `${node.name} (${node.network})`, value: node.id })),
]}
/>
</Form.Item>
{isServerEE && (
<Form.Item name="relay" label="Relay" data-nmui-intercom="update-enrollment-key-form_relays">
<Select
placeholder="Select relay to join with key"
allowClear
style={{ width: '100%' }}
options={[
{ label: 'Select relay to join with key', value: NULL_NODE_ID, disabled: true },
...relays.map((node) => ({ label: `${node.name} (${node.network})`, value: node.id })),
]}
/>
</Form.Item>
)}

<Row>
<Col xs={24} style={{ textAlign: 'right' }}>
Expand Down

0 comments on commit 46e7ab6

Please sign in to comment.