mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-25 10:11:24 +00:00
[dir view] offered 'full dirent list' for 'image viewer' to view all the images
This commit is contained in:
parent
4e66d30688
commit
a78529f97a
@ -66,6 +66,7 @@ class DirGridView extends React.Component {
|
|||||||
userPerm={this.props.userPerm}
|
userPerm={this.props.userPerm}
|
||||||
enableDirPrivateShare={this.props.enableDirPrivateShare}
|
enableDirPrivateShare={this.props.enableDirPrivateShare}
|
||||||
direntList={this.props.direntList}
|
direntList={this.props.direntList}
|
||||||
|
fullDirentList={this.props.fullDirentList}
|
||||||
onAddFile={this.props.onAddFile}
|
onAddFile={this.props.onAddFile}
|
||||||
onItemClick={this.props.onItemClick}
|
onItemClick={this.props.onItemClick}
|
||||||
onItemDelete={this.props.onItemDelete}
|
onItemDelete={this.props.onItemDelete}
|
||||||
|
@ -76,6 +76,7 @@ class DirListView extends React.Component {
|
|||||||
userPerm={this.props.userPerm}
|
userPerm={this.props.userPerm}
|
||||||
enableDirPrivateShare={this.props.enableDirPrivateShare}
|
enableDirPrivateShare={this.props.enableDirPrivateShare}
|
||||||
direntList={this.props.direntList}
|
direntList={this.props.direntList}
|
||||||
|
fullDirentList={this.props.fullDirentList}
|
||||||
sortBy={this.props.sortBy}
|
sortBy={this.props.sortBy}
|
||||||
sortOrder={this.props.sortOrder}
|
sortOrder={this.props.sortOrder}
|
||||||
sortItems={this.props.sortItems}
|
sortItems={this.props.sortItems}
|
||||||
|
@ -313,7 +313,7 @@ class DirentGridView extends React.Component{
|
|||||||
}
|
}
|
||||||
|
|
||||||
showImagePopup = (curItem) => {
|
showImagePopup = (curItem) => {
|
||||||
let items = this.props.direntList.filter((item) => {
|
let items = this.props.fullDirentList.filter((item) => {
|
||||||
return Utils.imageCheck(item.name);
|
return Utils.imageCheck(item.name);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ class DirentListView extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showImagePopup = (curItem) => {
|
showImagePopup = (curItem) => {
|
||||||
let items = this.props.direntList.filter((item) => {
|
let items = this.props.fullDirentList.filter((item) => {
|
||||||
return Utils.imageCheck(item.name);
|
return Utils.imageCheck(item.name);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -216,6 +216,7 @@ class LibContentContainer extends React.Component {
|
|||||||
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.props.isDirentListLoading}
|
isDirentListLoading={this.props.isDirentListLoading}
|
||||||
direntList={this.props.direntList}
|
direntList={this.props.direntList}
|
||||||
|
fullDirentList={this.props.fullDirentList}
|
||||||
sortBy={this.props.sortBy}
|
sortBy={this.props.sortBy}
|
||||||
sortOrder={this.props.sortOrder}
|
sortOrder={this.props.sortOrder}
|
||||||
sortItems={this.props.sortItems}
|
sortItems={this.props.sortItems}
|
||||||
@ -256,6 +257,7 @@ class LibContentContainer extends React.Component {
|
|||||||
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
updateUsedRepoTags={this.props.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.props.isDirentListLoading}
|
isDirentListLoading={this.props.isDirentListLoading}
|
||||||
direntList={this.props.direntList}
|
direntList={this.props.direntList}
|
||||||
|
fullDirentList={this.props.fullDirentList}
|
||||||
onAddFile={this.props.onAddFile}
|
onAddFile={this.props.onAddFile}
|
||||||
onItemClick={this.onItemClick}
|
onItemClick={this.onItemClick}
|
||||||
onItemDelete={this.props.onItemDelete}
|
onItemDelete={this.props.onItemDelete}
|
||||||
|
@ -1885,6 +1885,7 @@ class LibContentView extends React.Component {
|
|||||||
updateUsedRepoTags={this.updateUsedRepoTags}
|
updateUsedRepoTags={this.updateUsedRepoTags}
|
||||||
isDirentListLoading={this.state.isDirentListLoading}
|
isDirentListLoading={this.state.isDirentListLoading}
|
||||||
direntList={direntItemsList}
|
direntList={direntItemsList}
|
||||||
|
fullDirentList={this.state.direntList}
|
||||||
sortBy={this.state.sortBy}
|
sortBy={this.state.sortBy}
|
||||||
sortOrder={this.state.sortOrder}
|
sortOrder={this.state.sortOrder}
|
||||||
sortItems={this.sortItems}
|
sortItems={this.sortItems}
|
||||||
|
Loading…
Reference in New Issue
Block a user