fix(my-joy-beta): vms = true -> HVM
This commit is contained in:
parent
ac404ee33b
commit
33d6b2ecab
@ -86,12 +86,12 @@ export const ImageType = ({ setImageType, vms }) => (
|
||||
<Margin bottom={4}>
|
||||
<SectionList>
|
||||
<SectionListItem>
|
||||
<SectionListAnchor active={!vms} onClick={() => setImageType(false)}>
|
||||
<SectionListAnchor active={vms} onClick={() => setImageType(true)}>
|
||||
Hardware virtual machine
|
||||
</SectionListAnchor>
|
||||
</SectionListItem>
|
||||
<SectionListItem>
|
||||
<SectionListAnchor active={vms} onClick={() => setImageType(true)}>
|
||||
<SectionListAnchor active={!vms} onClick={() => setImageType(false)}>
|
||||
Infrastructure container
|
||||
</SectionListAnchor>
|
||||
</SectionListItem>
|
||||
|
@ -132,7 +132,7 @@ export default compose(
|
||||
({ form, values }, ownProps) => {
|
||||
const proceeded = get(values, 'create-instance-image-proceeded', false);
|
||||
const image = get(form, 'create-instance-image.values.image', null);
|
||||
const vms = get(values, 'vms', false);
|
||||
const vms = get(values, 'vms', true);
|
||||
|
||||
return {
|
||||
...ownProps,
|
||||
@ -154,8 +154,8 @@ export default compose(
|
||||
const id = versions[0].id;
|
||||
return dispatch(change('create-instance-image', 'image', id));
|
||||
},
|
||||
setImageType: value => {
|
||||
return dispatch(set({ name: 'vms', value }));
|
||||
setImageType: isVm => {
|
||||
return dispatch(set({ name: 'vms', value: isVm }));
|
||||
}
|
||||
})
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user