1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-28 03:10:45 +00:00

[dir view] offered 'full dirent list' for 'image viewer' to view all the images

This commit is contained in:
llj 2021-06-16 18:02:48 +08:00
parent 4e66d30688
commit a78529f97a
6 changed files with 7 additions and 2 deletions

View File

@ -66,6 +66,7 @@ class DirGridView extends React.Component {
userPerm={this.props.userPerm}
enableDirPrivateShare={this.props.enableDirPrivateShare}
direntList={this.props.direntList}
fullDirentList={this.props.fullDirentList}
onAddFile={this.props.onAddFile}
onItemClick={this.props.onItemClick}
onItemDelete={this.props.onItemDelete}

View File

@ -76,6 +76,7 @@ class DirListView extends React.Component {
userPerm={this.props.userPerm}
enableDirPrivateShare={this.props.enableDirPrivateShare}
direntList={this.props.direntList}
fullDirentList={this.props.fullDirentList}
sortBy={this.props.sortBy}
sortOrder={this.props.sortOrder}
sortItems={this.props.sortItems}

View File

@ -313,7 +313,7 @@ class DirentGridView extends React.Component{
}
showImagePopup = (curItem) => {
let items = this.props.direntList.filter((item) => {
let items = this.props.fullDirentList.filter((item) => {
return Utils.imageCheck(item.name);
});

View File

@ -169,7 +169,7 @@ class DirentListView extends React.Component {
}
showImagePopup = (curItem) => {
let items = this.props.direntList.filter((item) => {
let items = this.props.fullDirentList.filter((item) => {
return Utils.imageCheck(item.name);
});

View File

@ -216,6 +216,7 @@ class LibContentContainer extends React.Component {
updateUsedRepoTags={this.props.updateUsedRepoTags}
isDirentListLoading={this.props.isDirentListLoading}
direntList={this.props.direntList}
fullDirentList={this.props.fullDirentList}
sortBy={this.props.sortBy}
sortOrder={this.props.sortOrder}
sortItems={this.props.sortItems}
@ -256,6 +257,7 @@ class LibContentContainer extends React.Component {
updateUsedRepoTags={this.props.updateUsedRepoTags}
isDirentListLoading={this.props.isDirentListLoading}
direntList={this.props.direntList}
fullDirentList={this.props.fullDirentList}
onAddFile={this.props.onAddFile}
onItemClick={this.onItemClick}
onItemDelete={this.props.onItemDelete}

View File

@ -1885,6 +1885,7 @@ class LibContentView extends React.Component {
updateUsedRepoTags={this.updateUsedRepoTags}
isDirentListLoading={this.state.isDirentListLoading}
direntList={direntItemsList}
fullDirentList={this.state.direntList}
sortBy={this.state.sortBy}
sortOrder={this.state.sortOrder}
sortItems={this.sortItems}