1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

Merge pull request #4918 from haiwen/image-view

[dir view] offered 'full dirent list' for 'image viewer' to view all …
This commit is contained in:
Daniel Pan
2021-06-17 16:53:50 +08:00
committed by GitHub
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);
});