|
|
@ -1498,7 +1498,9 @@ const ProvisionServerDialog = ({ |
|
|
|
|
|
|
|
|
|
|
|
setOSAutocompleteOptions( |
|
|
|
setOSAutocompleteOptions( |
|
|
|
data.osList.map((keyValuePair: string) => { |
|
|
|
data.osList.map((keyValuePair: string) => { |
|
|
|
const [osKey, osValue] = keyValuePair.split(','); |
|
|
|
const [osKey, osValue] = keyValuePair |
|
|
|
|
|
|
|
.replace(/^key=([^\s]+),name=['"](.*)['"]$/, '$1,$2') |
|
|
|
|
|
|
|
.split(','); |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
label: osValue, |
|
|
|
label: osValue, |
|
|
@ -1728,6 +1730,11 @@ const ProvisionServerDialog = ({ |
|
|
|
}} |
|
|
|
}} |
|
|
|
openOnFocus |
|
|
|
openOnFocus |
|
|
|
options={osAutocompleteOptions} |
|
|
|
options={osAutocompleteOptions} |
|
|
|
|
|
|
|
renderOption={(optionProps, option) => ( |
|
|
|
|
|
|
|
<li {...optionProps} key={`ps-optimize-for-os-${option.key}`}> |
|
|
|
|
|
|
|
{option.label} ({option.key}) |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
)} |
|
|
|
value={inputOptimizeForOSValue} |
|
|
|
value={inputOptimizeForOSValue} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|