Repository: aurora Updated Branches: refs/heads/master c5e954cd0 -> b1648aa48
Hide pagination links on Role and Job lists when only one page Reviewed at https://reviews.apache.org/r/63078/ Project: http://git-wip-us.apache.org/repos/asf/aurora/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/b1648aa4 Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/b1648aa4 Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/b1648aa4 Branch: refs/heads/master Commit: b1648aa487e86dffe40b619ef683abfc38acd566 Parents: c5e954c Author: David McLaughlin <[email protected]> Authored: Tue Oct 17 10:37:47 2017 -0700 Committer: David McLaughlin <[email protected]> Committed: Tue Oct 17 10:37:47 2017 -0700 ---------------------------------------------------------------------- ui/src/main/js/components/JobList.js | 1 + ui/src/main/js/components/RoleList.js | 1 + 2 files changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aurora/blob/b1648aa4/ui/src/main/js/components/JobList.js ---------------------------------------------------------------------- diff --git a/ui/src/main/js/components/JobList.js b/ui/src/main/js/components/JobList.js index ff5377d..f54615f 100644 --- a/ui/src/main/js/components/JobList.js +++ b/ui/src/main/js/components/JobList.js @@ -55,6 +55,7 @@ export default class JobList extends React.Component { <Pagination data={this.props.jobs} filter={filterFn} + hideIfSinglePage isTable numberPerPage={25} renderer={this._renderRow} http://git-wip-us.apache.org/repos/asf/aurora/blob/b1648aa4/ui/src/main/js/components/RoleList.js ---------------------------------------------------------------------- diff --git a/ui/src/main/js/components/RoleList.js b/ui/src/main/js/components/RoleList.js index cffb012..177640a 100644 --- a/ui/src/main/js/components/RoleList.js +++ b/ui/src/main/js/components/RoleList.js @@ -53,6 +53,7 @@ export default class RoleList extends React.Component { <Pagination data={this.props.roles} filter={(r) => (this.state.filter) ? r.role.startsWith(this.state.filter) : true} + hideIfSinglePage isTable numberPerPage={25} renderer={this._renderRow}
