1
0
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:
shanshuirenjia
2019-04-18 17:32:34 +08:00
parent 8eae22a58d
commit 959001b1bf
4 changed files with 91 additions and 64 deletions

View File

@@ -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() {