Web: Files : Home : Added isEdit condition for render share button

This commit is contained in:
Ilya Oleshko 2020-10-13 11:58:28 +03:00
parent f6a5c8a30b
commit 2f88af1137

View File

@ -1491,7 +1491,7 @@ class SectionBodyContent extends React.Component {
editingId === item.id &&
item.fileExst === fileAction.extension;
const contextOptionsProps =
contextOptions && contextOptions.length > 0
!isEdit && contextOptions && contextOptions.length > 0
? {
contextOptions: this.getFilesContextOptions(
contextOptions,
@ -1503,7 +1503,7 @@ class SectionBodyContent extends React.Component {
const element = this.getItemIcon(item, isEdit || item.id <= 0);
const classNameProp =
isFolder && item.access < 2 ? { className: " dropable" } : {};
const sharedButton = this.getSharedButton();
const sharedButton = (isEdit || item.id <= 0) ? null : this.getSharedButton();
const displayShareButton = widthProp > 500 ? '96px' : '26px';
return (