mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
after copy success, close the shared dialog (#2774)
This commit is contained in:
@@ -160,6 +160,10 @@ class DirentListItem extends React.Component {
|
||||
this.setState({isShareDialogShow: !this.state.isShareDialogShow});
|
||||
}
|
||||
|
||||
closeSharedDialog = () => {
|
||||
this.setState({isShareDialogShow: !this.state.isShareDialogShow});
|
||||
}
|
||||
|
||||
onMenuItemClick = (operation) => {
|
||||
switch(operation) {
|
||||
case 'Rename':
|
||||
@@ -516,7 +520,7 @@ class DirentListItem extends React.Component {
|
||||
itemName={dirent.name}
|
||||
itemPath={direntPath}
|
||||
repoID={this.props.repoID}
|
||||
toggleDialog={this.onItemShare}
|
||||
toggleDialog={this.closeSharedDialog}
|
||||
/>
|
||||
</ModalPortal>
|
||||
}
|
||||
|
Reference in New Issue
Block a user