mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 16:13:12 +09:00
Merge pull request #701 from Cooldude2606/feature/enum-config-input
This commit is contained in:
1 parent
45ae20051f
commit
583d484573
7 files changed
+21
-10
No files matched your search
@@ -77,13 +77,14 @@ export default function AssignInstanceModal(props: AssignInstanceModalProps) {
|
||||
</Paragraph>
|
||||
<Form form={form} initialValues={{ host: props.hostId ?? "null" }}>
|
||||
<Form.Item name="host" label="Host">
|
||||
<Select>
|
||||
<Select showSearch optionFilterProp="name">
|
||||
<Select.Option value={"null"}>
|
||||
<Typography.Text italic>Unassigned</Typography.Text>
|
||||
</Select.Option>
|
||||
{[...hosts.values()].sort((a, b) => strcmp(a.name, b.name)).map((host) => <Select.Option
|
||||
key={host["id"]}
|
||||
value={host["id"]}
|
||||
name={host["name"]}
|
||||
disabled={!host["connected"]}
|
||||
>
|
||||
{host["name"]}
|
||||
@@ -95,4 +96,3 @@ export default function AssignInstanceModal(props: AssignInstanceModalProps) {
|
||||
</Modal>
|
||||
</>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user