Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Change "Use Subcategories" to "Include Subcategories"
Browse files Browse the repository at this point in the history
  • Loading branch information
minlare committed Jan 18, 2018
1 parent 4cf4968 commit e5547e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions js/src/component/ItemForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class ItemForm extends React.Component {
url: ''
});
}

handleUseSubcategoriesChange(val) {
this.setState({
use_subcategories: val ? val.value : 0
Expand Down Expand Up @@ -111,17 +111,17 @@ export default class ItemForm extends React.Component {
} else {
image = <button onClick={this.openFileBrowser.bind(this)}>Upload Image</button>
}

let useSubcategories = null;
if (this.state.category_id) {
const booleanOptions = [
{ value: 0, label: 'No' },
{ value: 1, label: 'Yes' }
];
useSubcategories =
useSubcategories =
<div className="admin__field field">
<label className="label admin__field-label">
<span>Use Subcategories</span>
<span>Include Subcategories</span>
</label>
<div className="admin__field-control control">
<Select name="use_subcategories" value={this.state.use_subcategories} onChange={this.handleUseSubcategoriesChange} options={booleanOptions} />
Expand Down Expand Up @@ -202,4 +202,4 @@ export default class ItemForm extends React.Component {
</form>
);
}
}
}
8 changes: 4 additions & 4 deletions view/adminhtml/web/js/menu-editor.js

Large diffs are not rendered by default.

0 comments on commit e5547e9

Please sign in to comment.