1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

repair move&copy bug (#3091)

This commit is contained in:
杨顺强
2019-03-11 11:14:49 +08:00
committed by Daniel Pan
parent d0ad828267
commit 0a5bffc45f
5 changed files with 14 additions and 6 deletions

View File

@@ -33,8 +33,12 @@ const propTypes = {
onItemDetails: PropTypes.func.isRequired,
onDirentClick: PropTypes.func.isRequired,
updateDirent: PropTypes.func.isRequired,
showImagePopup: PropTypes.func.isRequired,
currentRepoInfo: PropTypes.object,
isRepoOwner: PropTypes.bool,
isAdmin: PropTypes.bool.isRequired,
repoEncrypted: PropTypes.bool.isRequired,
isGroupOwnedRepo: PropTypes.bool.isRequired,
};
class DirentListItem extends React.Component {
@@ -429,7 +433,7 @@ class DirentListItem extends React.Component {
isMutipleOperation={this.state.isMutipleOperation}
onItemMove={this.props.onItemMove}
onCancelMove={this.onItemMoveToggle}
currentRepoInfo={this.props.currentRepoInfo}
repoEncrypted={this.props.repoEncrypted}
/>
</ModalPortal>
}
@@ -442,7 +446,7 @@ class DirentListItem extends React.Component {
isMutipleOperation={this.state.isMutipleOperation}
onItemCopy={this.props.onItemCopy}
onCancelCopy={this.onItemCopyToggle}
currentRepoInfo={this.props.currentRepoInfo}
repoEncrypted={this.props.repoEncrypted}
/>
</ModalPortal>
}