fix(my-joy-beta): vms = true -> HVM

This commit is contained in:
Sérgio Ramos 2018-02-27 15:23:29 +00:00
parent ac404ee33b
commit 33d6b2ecab
2 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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 }));
}
})
),