mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +00:00
delete details choice in menu (#3239)
This commit is contained in:
@@ -155,7 +155,6 @@ class MyLibraries extends Component {
|
||||
onRenameRepo={this.onRenameRepo}
|
||||
onDeleteRepo={this.onDeleteRepo}
|
||||
onTransferRepo={this.onTransferRepo}
|
||||
onRepoDetails={this.onRepoDetails}
|
||||
onRepoClick={this.onRepoClick}
|
||||
sortRepoList={this.sortRepoList}
|
||||
/>
|
||||
|
@@ -25,7 +25,6 @@ const propTypes = {
|
||||
onRenameRepo: PropTypes.func.isRequired,
|
||||
onDeleteRepo: PropTypes.func.isRequired,
|
||||
onTransferRepo: PropTypes.func.isRequired,
|
||||
onRepoDetails: PropTypes.func.isRequired,
|
||||
onRepoClick: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
@@ -90,9 +89,6 @@ class MylibRepoListItem extends React.Component {
|
||||
case 'Folder Permission':
|
||||
// todo
|
||||
break;
|
||||
case 'Details':
|
||||
this.onRepoDetails();
|
||||
break;
|
||||
case 'Label current state':
|
||||
this.onLabel();
|
||||
break;
|
||||
@@ -146,10 +142,6 @@ class MylibRepoListItem extends React.Component {
|
||||
this.setState({isResetPasswordDialogShow: !this.state.isResetPasswordDialogShow});
|
||||
}
|
||||
|
||||
onRepoDetails = () => {
|
||||
this.props.onRepoDetails(this.props.repo);
|
||||
}
|
||||
|
||||
onLabel = () => {
|
||||
// todo
|
||||
}
|
||||
|
@@ -12,7 +12,6 @@ const propTypes = {
|
||||
onRenameRepo: PropTypes.func.isRequired,
|
||||
onDeleteRepo: PropTypes.func.isRequired,
|
||||
onTransferRepo: PropTypes.func.isRequired,
|
||||
onRepoDetails: PropTypes.func.isRequired,
|
||||
onRepoClick: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
@@ -61,7 +60,6 @@ class MylibRepoListView extends React.Component {
|
||||
onRenameRepo={this.props.onRenameRepo}
|
||||
onDeleteRepo={this.props.onDeleteRepo}
|
||||
onTransferRepo={this.props.onTransferRepo}
|
||||
onRepoDetails={this.props.onRepoDetails}
|
||||
onRepoClick={this.props.onRepoClick}
|
||||
/>
|
||||
);
|
||||
|
@@ -61,7 +61,6 @@ class MylibRepoMenu extends React.Component {
|
||||
if (folderPermEnabled) {
|
||||
operations.push('Folder Permission');
|
||||
}
|
||||
operations.push('Details');
|
||||
if (this.props.isPC && enableRepoSnapshotLabel) {
|
||||
operations.push('Label current state');
|
||||
}
|
||||
@@ -95,9 +94,6 @@ class MylibRepoMenu extends React.Component {
|
||||
case 'Folder Permission':
|
||||
translateResult = gettext('Folder Permission');
|
||||
break;
|
||||
case 'Details':
|
||||
translateResult = gettext('Details');
|
||||
break;
|
||||
case 'Label current state':
|
||||
translateResult = gettext('Label current state');
|
||||
break;
|
||||
|
Reference in New Issue
Block a user