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}>
|
<Margin bottom={4}>
|
||||||
<SectionList>
|
<SectionList>
|
||||||
<SectionListItem>
|
<SectionListItem>
|
||||||
<SectionListAnchor active={!vms} onClick={() => setImageType(false)}>
|
<SectionListAnchor active={vms} onClick={() => setImageType(true)}>
|
||||||
Hardware virtual machine
|
Hardware virtual machine
|
||||||
</SectionListAnchor>
|
</SectionListAnchor>
|
||||||
</SectionListItem>
|
</SectionListItem>
|
||||||
<SectionListItem>
|
<SectionListItem>
|
||||||
<SectionListAnchor active={vms} onClick={() => setImageType(true)}>
|
<SectionListAnchor active={!vms} onClick={() => setImageType(false)}>
|
||||||
Infrastructure container
|
Infrastructure container
|
||||||
</SectionListAnchor>
|
</SectionListAnchor>
|
||||||
</SectionListItem>
|
</SectionListItem>
|
||||||
|
@ -132,7 +132,7 @@ export default compose(
|
|||||||
({ form, values }, ownProps) => {
|
({ form, values }, ownProps) => {
|
||||||
const proceeded = get(values, 'create-instance-image-proceeded', false);
|
const proceeded = get(values, 'create-instance-image-proceeded', false);
|
||||||
const image = get(form, 'create-instance-image.values.image', null);
|
const image = get(form, 'create-instance-image.values.image', null);
|
||||||
const vms = get(values, 'vms', false);
|
const vms = get(values, 'vms', true);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...ownProps,
|
...ownProps,
|
||||||
@ -154,8 +154,8 @@ export default compose(
|
|||||||
const id = versions[0].id;
|
const id = versions[0].id;
|
||||||
return dispatch(change('create-instance-image', 'image', id));
|
return dispatch(change('create-instance-image', 'image', id));
|
||||||
},
|
},
|
||||||
setImageType: value => {
|
setImageType: isVm => {
|
||||||
return dispatch(set({ name: 'vms', value }));
|
return dispatch(set({ name: 'vms', value: isVm }));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user