Skip to content

Commit

Permalink
Merge pull request #333 from openworm/feature/486
Browse files Browse the repository at this point in the history
Feature/486
  • Loading branch information
tarelli authored Sep 22, 2020
2 parents ea81a68 + 26e226c commit 6dd04a0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
8 changes: 6 additions & 2 deletions geppetto-ui/src/list-viewer/ListViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export default class ListViewer extends React.Component {
<div className="listviewer-container">
<Filter />
<Table />
<Pagination />
{ this.props.showPagination === false ? null : <Pagination /> }
</div>
);
}
Expand Down Expand Up @@ -379,7 +379,7 @@ export default class ListViewer extends React.Component {
: {};
const { events, ...others } = this.props;
return (
<section className="listviewer">
<section className={ this.props.className ? this.props.className : "listviewer" }>
<Griddle
data={this.getData()}
plugins={this.getPlugins()}
Expand Down Expand Up @@ -417,4 +417,8 @@ ListViewer.propTypes = {
* Components passed in with a matching name will override the default in Griddle
*/
customComponents: PropTypes.object,
/**
* Show Pagination button, used for changing pages
*/
showPagination: PropTypes.bool
};
20 changes: 15 additions & 5 deletions geppetto-ui/src/menu/MenuSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,21 @@ class MenuSection extends React.Component {
onMouseOver={this.handleOver}
onMouseOut={this.handleOut}
>
{this.props.button.icon !== '' ? (
<span style={{ display: 'inline-block', width: '25px' }}>
<i className={this.props.button.icon}></i>
</span>
) : undefined}
{ this.props.button.icon !== ""
? this.props.button.caret
? this.props.button.caret.show
? <span style={ { color : this.props.button.activeColor } }>
{this.props.button.icon ? this.props.button.icon : null}
{this.props.menuOpen ? this.props.button.caret.closedIcon : this.props.button.caret.expandedIcon }
</span>
: <span style={{ display: "inline-block", color : this.props.button.activeColor }}>
{this.props.button.icon ? this.props.button.icon : null}
</span>
: <span style={{ display: "inline-block", color : this.props.button.activeColor }}>
{this.props.button.icon ? this.props.button.icon : null}
</span>
: undefined
}
{this.props.button.label}
</Button>
<MenuPopper
Expand Down

0 comments on commit 6dd04a0

Please sign in to comment.