Web: Files : Home : Added isEdit condition for render share button
This commit is contained in:
parent
f6a5c8a30b
commit
2f88af1137
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user