Skip to content

Commit 1a05f29

Browse files
committed
Fixed #213
1 parent ba16016 commit 1a05f29

13 files changed

Lines changed: 71 additions & 37 deletions

File tree

src/admin/client/modules/app/head/components/appBar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import messages from 'lib/text'
55
import ProductCategoryHead from 'modules/product-categories/head/index'
66
import CustomerGroupHead from 'modules/customer-groups/head/index'
77
import CustomersHead from 'modules/customers/head/index'
8-
import ProductsHead from 'modules/products/list/head/index'
9-
import ProductHead from 'modules/products/edit/head/index'
8+
import ProductsHead from 'modules/products/head-list/index'
9+
import ProductHead from 'modules/products/head-edit/index'
1010
import OrdersHead from 'modules/orders/head/index'
1111
import PaymentMethodHead from 'modules/settings/paymentsEdit/head'
1212
import ShippingMethodHead from 'modules/settings/shippingEdit/head'

src/admin/client/modules/product-categories/head/components/buttons.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@ export default class Buttons extends React.Component {
8484
];
8585

8686
return (
87-
<span style={{ marginRight: 12 }}>
88-
<IconButton touch={true} tooltip={messages.actions_moveUp} onTouchTap={onMoveUp}>
87+
<span>
88+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_moveUp} onTouchTap={onMoveUp}>
8989
<FontIcon color="#fff" className="material-icons">arrow_upward</FontIcon>
9090
</IconButton>
91-
<IconButton touch={true} tooltip={messages.actions_moveDown} onTouchTap={onMoveDown}>
91+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_moveDown} onTouchTap={onMoveDown}>
9292
<FontIcon color="#fff" className="material-icons">arrow_downward</FontIcon>
9393
</IconButton>
94-
<IconButton touch={true} tooltip={messages.actions_delete} onTouchTap={this.showDelete}>
94+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_delete} onTouchTap={this.showDelete}>
9595
<FontIcon color="#fff" className="material-icons">delete</FontIcon>
9696
</IconButton>
97-
<IconButton touch={true} tooltip={messages.actions_moveTo} onTouchTap={this.showMoveTo}>
97+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_moveTo} onTouchTap={this.showMoveTo}>
9898
<FontIcon color="#fff" className="material-icons">move_to_inbox</FontIcon>
9999
</IconButton>
100100
<Dialog

src/admin/client/modules/products/edit/inventory/components/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ class ProductInventoryForm extends React.Component {
166166
marginTop: 10,
167167
marginBottom: 10
168168
}}/>
169-
<Field name="enabled" component={CustomToggle} label={messages.enabled}/>
169+
<Field name="discontinued" component={CustomToggle} label={messages.products_discontinued}/>
170170
<Divider style={{
171171
marginTop: 10,
172172
marginBottom: 10
173173
}}/>
174-
<Field name="discontinued" component={CustomToggle} label={messages.products_discontinued}/>
174+
<Field name="enabled" component={CustomToggle} label={messages.enabled}/>
175175
</div>
176176
<div className="buttons-box">
177177
<Link to={'/admin/products'}>

src/admin/client/modules/products/edit/head/components/buttons.js renamed to src/admin/client/modules/products/head-edit/components/buttons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class Buttons extends React.Component {
4444

4545
return (
4646
<span>
47-
<IconButton touch={true} tooltip={messages.actions_delete} onTouchTap={this.showDelete}>
47+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_delete} onTouchTap={this.showDelete}>
4848
<FontIcon color="#fff" className="material-icons">delete</FontIcon>
4949
</IconButton>
5050
<Dialog

src/admin/client/modules/products/edit/head/index.js renamed to src/admin/client/modules/products/head-edit/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { connect } from 'react-redux'
3-
import { deleteCurrentProduct } from '../../actions'
3+
import { deleteCurrentProduct } from '../actions'
44
import Buttons from './components/buttons'
55

66
const mapStateToProps = (state) => {

src/admin/client/modules/products/list/head/components/buttons.js renamed to src/admin/client/modules/products/head-list/components/buttons.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ export default class Buttons extends React.Component {
9090
<Search value={search} setSearch={setSearch} />
9191
{selectedCount > 0 &&
9292
<span>
93-
<IconButton touch={true} tooltip={messages.actions_delete} onTouchTap={this.showDelete}>
93+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_delete} onTouchTap={this.showDelete}>
9494
<FontIcon color="#fff" className="material-icons">delete</FontIcon>
9595
</IconButton>
96-
<IconButton touch={true} tooltip={messages.actions_moveTo} onTouchTap={this.showMoveTo}>
96+
<IconButton touch={true} tooltipPosition="bottom-left" tooltip={messages.actions_moveTo} onTouchTap={this.showMoveTo}>
9797
<FontIcon color="#fff" className="material-icons">move_to_inbox</FontIcon>
9898
</IconButton>
9999
<Dialog

src/admin/client/modules/products/list/head/components/search.js renamed to src/admin/client/modules/products/head-list/components/search.js

File renamed without changes.

src/admin/client/modules/products/list/head/index.js renamed to src/admin/client/modules/products/head-list/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { connect } from 'react-redux'
3-
import { fetchProducts, deleteProducts, setCategory, setFilter } from '../../actions'
3+
import { fetchProducts, deleteProducts, setCategory, setFilter } from '../actions'
44
import Buttons from './components/buttons'
55

66
const mapStateToProps = (state) => {

src/admin/client/modules/settings/pages/edit/components/form.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react'
22
import {Field, reduxForm} from 'redux-form'
3-
import {TextField, Toggle} from 'redux-form-material-ui'
3+
import {TextField} from 'redux-form-material-ui'
44

5+
import { CustomToggle } from 'modules/shared/form'
6+
import Editor from 'modules/shared/editor'
57
import messages from 'lib/text'
68
import style from './style.css'
79
import api from 'lib/api'
8-
import Editor from 'modules/shared/editor'
910

1011
import Divider from 'material-ui/Divider';
1112
import RaisedButton from 'material-ui/RaisedButton';
@@ -73,7 +74,7 @@ class EditPageForm extends React.Component {
7374
<Field name="meta_title" component={TextField} floatingLabelText={messages.pageTitle} fullWidth={true}/><br/>
7475
<Field name="meta_description" component={TextField} floatingLabelText={messages.metaDescription} fullWidth={true}/>
7576
<div style={{maxWidth: 256}}>
76-
<Field component={Toggle} name="enabled" label={messages.enabled} style={{paddingTop:16, paddingBottom:16}} disabled={initialValues.is_system}/>
77+
<Field component={CustomToggle} name="enabled" label={messages.enabled} style={{paddingTop:16, paddingBottom:16}} disabled={initialValues.is_system}/>
7778
</div>
7879
</div>
7980
<div style={{

src/admin/client/modules/settings/paymentsEdit/components/form.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react'
22
import {Field, reduxForm} from 'redux-form'
3-
import {TextField, SelectField, Toggle} from 'redux-form-material-ui'
3+
import {TextField, SelectField} from 'redux-form-material-ui'
44

5+
import { CustomToggle } from 'modules/shared/form'
56
import messages from 'lib/text'
67
import style from './style.css'
78

@@ -101,7 +102,7 @@ class EditPaymentMethodForm extends React.Component {
101102
<Field component={TextField} fullWidth={true} name="description" multiLine={true} floatingLabelText={messages.description}/>
102103
</div>
103104
<div style={{maxWidth: 256}}>
104-
<Field component={Toggle} name="enabled" label={messages.enabled} style={{paddingTop:16, paddingBottom:16}}/>
105+
<Field component={CustomToggle} name="enabled" label={messages.enabled} style={{paddingTop:16, paddingBottom:16}}/>
105106
<Divider />
106107
</div>
107108
<div className="blue-title">{messages.settings_conditions}</div>

0 commit comments

Comments
 (0)