1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

delete details choice in menu (#3239)

This commit is contained in:
Michael An
2019-04-11 11:13:36 +08:00
committed by Daniel Pan
parent b54bea4ecb
commit aea14dd74a
10 changed files with 7 additions and 51 deletions

View File

@@ -31,7 +31,6 @@ const propTypes = {
onItemRename: PropTypes.func.isRequired,
onItemMove: PropTypes.func.isRequired,
onItemCopy: PropTypes.func.isRequired,
onItemDetails: PropTypes.func.isRequired,
onDirentClick: PropTypes.func.isRequired,
updateDirent: PropTypes.func.isRequired,
showImagePopup: PropTypes.func.isRequired,
@@ -242,9 +241,6 @@ class DirentListItem extends React.Component {
case 'Permission':
this.onPermissionItem();
break;
case 'Details':
this.onDetailsItem();
break;
case 'Unlock':
this.onUnlockItem();
break;
@@ -298,10 +294,6 @@ class DirentListItem extends React.Component {
}
onDetailsItem = () => {
this.props.onItemDetails(this.props.dirent);
}
onLockItem = () => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(this.props.dirent);