mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
repair cloud-edit&perview bug
This commit is contained in:
@@ -283,6 +283,12 @@ class DirentListView extends React.Component {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
let currentRepoInfo = this.props.currentRepoInfo;
|
||||
|
||||
if (currentRepoInfo.permission === 'cloud-edit' || currentRepoInfo.permission === 'preview') {
|
||||
return '';
|
||||
}
|
||||
|
||||
let x = event.clientX || (event.touches && event.touches[0].pageX);
|
||||
let y = event.clientY || (event.touches && event.touches[0].pageY);
|
||||
|
||||
@@ -511,6 +517,8 @@ class DirentListView extends React.Component {
|
||||
menuList.push(HISTORY);
|
||||
return menuList;
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
render() {
|
||||
|
Reference in New Issue
Block a user