Commit bc1708d0 authored by PDuarte's avatar PDuarte

adding plaform to layout menu

parent 3a84115e
......@@ -25,7 +25,8 @@ const Tables = () => {
dispatch(
addlayoutmenu({
name: values.name,
slug: values.slug
slug: values.slug,
platforms: values.platforms
})
)
......@@ -46,10 +47,11 @@ const Tables = () => {
<h4 className="card-title">New {moduleSettings.mainTitleSingle}</h4>
</div>
<div className="card-body">
<ElementCard selectedProject={{
<ElementCard selectedElement={{
id: '<generate>',
name: '',
slug: ''
slug: '',
platforms: []
}}
onSubmitHandler={onSubmitHandler}
/>
......
......@@ -20,6 +20,8 @@ import classnames from 'classnames'
import Swal from 'sweetalert2'
import withReactContent from 'sweetalert2-react-content'
import ElementPlatform from './plataform'
const SuccessProgressToast = () => (
<Fragment>
......@@ -144,25 +146,9 @@ return (
/>
</FormGroup>
</Col>
{/* <Col md='4' sm='12'>
<FormGroup>
<Label for='email'>Email</Label>
<Input disabled='disabled' type='text' id='email' placeholder='Email' defaultValue={ProjectData && ProjectData.email} />
</FormGroup>
</Col> */}
{/* <Col md='4' sm='12'>
<FormGroup>
<Label for='name'>Name</Label>
<Input type='select' name='name' id='name' defaultValue={dataElement && dataElement.name} onChange={e => setPlatformName(e.target.value)}>
<option value='Web'>Web</option>
<option value='iOS Phone'>iOS Phone</option>
<option value='iOS Tablet'>iOS Tablet</option>
<option value='Android Phone'>Android Phone</option>
<option value='Android Tablet'>Android Tablet</option>
</Input>
</FormGroup>
</Col> */}
<Col sm='12'>
<ElementPlatform dataElement={dataElement} setElement={setElementData} store={store} />
</Col>
<Col className='d-flex flex-sm-row flex-column mt-2' sm='12'>
<Button.Ripple className='mb-1 mb-sm-0 mr-0 mr-sm-1' type='submit' color='primary'>
......
This diff is collapsed.
......@@ -23,9 +23,11 @@ const ElementEdit = () => {
const onSubmitHandler = values => {
dispatch(
updateLayoutMenu({
...dataElement,
id: values.id,
name: values.name,
slug: values.slug
slug: values.slug,
platforms: values.platforms
})
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment