|
|
@ -119,6 +119,8 @@ type OrganizedAnvilDetailMetadataForProvisionServer = Omit< |
|
|
|
fileUUIDs: string[]; |
|
|
|
fileUUIDs: string[]; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type OSAutoCompleteOption = { label: string; key: string }; |
|
|
|
|
|
|
|
|
|
|
|
type FilterAnvilsFunction = ( |
|
|
|
type FilterAnvilsFunction = ( |
|
|
|
allAnvils: OrganizedAnvilDetailMetadataForProvisionServer[], |
|
|
|
allAnvils: OrganizedAnvilDetailMetadataForProvisionServer[], |
|
|
|
storageGroupUUIDMapToFree: StorageGroupUUIDMapToFree, |
|
|
|
storageGroupUUIDMapToFree: StorageGroupUUIDMapToFree, |
|
|
@ -975,7 +977,7 @@ const ProvisionServerDialog = ({ |
|
|
|
const [anvilSelectItems, setAnvilSelectItems] = useState<SelectItem[]>([]); |
|
|
|
const [anvilSelectItems, setAnvilSelectItems] = useState<SelectItem[]>([]); |
|
|
|
const [fileSelectItems, setFileSelectItems] = useState<SelectItem[]>([]); |
|
|
|
const [fileSelectItems, setFileSelectItems] = useState<SelectItem[]>([]); |
|
|
|
const [osAutocompleteOptions, setOSAutocompleteOptions] = useState< |
|
|
|
const [osAutocompleteOptions, setOSAutocompleteOptions] = useState< |
|
|
|
{ label: string; key: string }[] |
|
|
|
OSAutoCompleteOption[] |
|
|
|
>([]); |
|
|
|
>([]); |
|
|
|
const [storageGroupSelectItems, setStorageGroupSelectItems] = useState< |
|
|
|
const [storageGroupSelectItems, setStorageGroupSelectItems] = useState< |
|
|
|
SelectItem[] |
|
|
|
SelectItem[] |
|
|
@ -1021,6 +1023,9 @@ const ProvisionServerDialog = ({ |
|
|
|
InputMessage | undefined |
|
|
|
InputMessage | undefined |
|
|
|
>(); |
|
|
|
>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [inputOptimizeForOSValue, setInputOptimizeForOSValue] = |
|
|
|
|
|
|
|
useState<OSAutoCompleteOption | null>(null); |
|
|
|
|
|
|
|
|
|
|
|
const [includeAnvilUUIDs, setIncludeAnvilUUIDs] = useState<string[]>([]); |
|
|
|
const [includeAnvilUUIDs, setIncludeAnvilUUIDs] = useState<string[]>([]); |
|
|
|
const [includeFileUUIDs, setIncludeFileUUIDs] = useState<string[]>([]); |
|
|
|
const [includeFileUUIDs, setIncludeFileUUIDs] = useState<string[]>([]); |
|
|
|
const [includeStorageGroupUUIDs, setIncludeStorageGroupUUIDs] = useState< |
|
|
|
const [includeStorageGroupUUIDs, setIncludeStorageGroupUUIDs] = useState< |
|
|
@ -1553,12 +1558,20 @@ const ProvisionServerDialog = ({ |
|
|
|
value: inputAnvilValue, |
|
|
|
value: inputAnvilValue, |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<BodyText text={`OS: ${inputOptimizeForOSValue}`} /> |
|
|
|
<Autocomplete |
|
|
|
<Autocomplete |
|
|
|
id="ps-optimize-for-os" |
|
|
|
id="ps-optimize-for-os" |
|
|
|
|
|
|
|
extendRenderInput={({ inputLabelProps = {} }) => { |
|
|
|
|
|
|
|
inputLabelProps.isNotifyRequired = inputOptimizeForOSValue === null; |
|
|
|
|
|
|
|
}} |
|
|
|
label="Optimize for OS" |
|
|
|
label="Optimize for OS" |
|
|
|
noOptionsText="No matching OS" |
|
|
|
noOptionsText="No matching OS" |
|
|
|
|
|
|
|
onChange={(event, value) => { |
|
|
|
|
|
|
|
setInputOptimizeForOSValue(value); |
|
|
|
|
|
|
|
}} |
|
|
|
openOnFocus |
|
|
|
openOnFocus |
|
|
|
options={osAutocompleteOptions} |
|
|
|
options={osAutocompleteOptions} |
|
|
|
|
|
|
|
value={inputOptimizeForOSValue} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|
<Box |
|
|
|
<Box |
|
|
|