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

View File

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