1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

Display quantity up

This commit is contained in:
zxj96
2019-04-24 13:52:09 +08:00
parent 870c32113c
commit c7d9eb8ec0
2 changed files with 8 additions and 9 deletions

View File

@@ -86,7 +86,6 @@ const propTypes = {
onDeleteRepoTag: PropTypes.func.isRequired,
updateDetail: PropTypes.bool.isRequired,
onPageScroll: PropTypes.func.isRequired,
itemShowLength: PropTypes.number.isRequired
};
class LibContentContainer extends React.Component {
@@ -156,10 +155,6 @@ class LibContentContainer extends React.Component {
}
}
let direntItemsList = direntList.filter((item, index) => {
return index < this.props.itemShowLength;
})
return (
<Fragment>
<div className="cur-view-container">
@@ -195,7 +190,7 @@ class LibContentContainer extends React.Component {
draftCounts={this.props.draftCounts}
updateUsedRepoTags={this.props.updateUsedRepoTags}
isDirentListLoading={this.props.isDirentListLoading}
direntList={direntItemsList}
direntList={this.props.direntList}
showShareBtn={this.props.showShareBtn}
sortBy={this.props.sortBy}
sortOrder={this.props.sortOrder}
@@ -234,7 +229,7 @@ class LibContentContainer extends React.Component {
draftCounts={this.props.draftCounts}
updateUsedRepoTags={this.props.updateUsedRepoTags}
isDirentListLoading={this.props.isDirentListLoading}
direntList={direntItemsList}
direntList={this.props.direntList}
onAddFile={this.props.onAddFile}
onItemClick={this.onItemClick}
onItemDelete={this.props.onItemDelete}
@@ -286,7 +281,7 @@ class LibContentContainer extends React.Component {
draftCounts={this.props.draftCounts}
updateUsedRepoTags={this.props.updateUsedRepoTags}
isDirentListLoading={this.props.isDirentListLoading}
direntList={direntItemsList}
direntList={this.props.direntList}
showShareBtn={this.props.showShareBtn}
sortBy={this.props.sortBy}
sortOrder={this.props.sortOrder}