Skip to content

Commit

Permalink
* #19. search, rowsSelector, pagination positioning +
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Mar 18, 2017
1 parent 589bdfb commit ff9cbe2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/Tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var EditorConstants = require('./EditorConstants');
var Lang = require('./Lang');

class Tools extends React.Component {

getPagesSelection()
{
const {
Expand Down Expand Up @@ -42,7 +41,7 @@ class Tools extends React.Component {
doSearch,
lang
} = this.props;
console.log(struct.search.indexOf(display));

if (struct.search.indexOf(display) === -1) {
return '';
}
Expand All @@ -63,12 +62,14 @@ class Tools extends React.Component {
updatePerPage,
perPageRows,
doSearch,
lang
lang,
tableOpts
} = this.props;

var language = Lang[lang];
let buttons = [];
this.props.tableOpts.buttons.map((btn, i) => {
if (typeof tableOpts.buttons !== CommonConstants.UNDEFINED) {
tableOpts.buttons.map((btn, i) => {
if (btn[EditorConstants.EXTENDED] === EditorConstants.EDITOR_CREATE) {
buttons[i] = <Button
active={false}
Expand All @@ -92,7 +93,8 @@ class Tools extends React.Component {
showPopup={showPopup}
key={i}>{language.editor_remove}</Button>;
}
});
});
}
return (
<div className="gt_head_tools">
{buttons}
Expand Down

0 comments on commit ff9cbe2

Please sign in to comment.