mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
repair set folder permission bug
This commit is contained in:
@@ -462,7 +462,7 @@ class DirentListItem extends React.Component {
|
|||||||
if (currentRepoInfo.permission === 'cloud-edit' || currentRepoInfo.permission === 'preview') {
|
if (currentRepoInfo.permission === 'cloud-edit' || currentRepoInfo.permission === 'preview') {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{selectedDirentList.length > 1 ?
|
{selectedDirentList.length > 1 ?
|
||||||
@@ -473,14 +473,16 @@ class DirentListItem extends React.Component {
|
|||||||
<li className="operation-group-item">
|
<li className="operation-group-item">
|
||||||
<i className="op-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemDownload}></i>
|
<i className="op-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemDownload}></i>
|
||||||
</li>
|
</li>
|
||||||
{showShareBtn &&
|
{showShareBtn && (
|
||||||
<li className="operation-group-item">
|
<li className="operation-group-item">
|
||||||
<i className="op-icon sf2-icon-share" title={gettext('Share')} onClick={this.onItemShare}></i>
|
<i className="op-icon sf2-icon-share" title={gettext('Share')} onClick={this.onItemShare}></i>
|
||||||
</li>
|
</li>
|
||||||
}
|
)}
|
||||||
<li className="operation-group-item">
|
{dirent.permission === 'rw' && (
|
||||||
<i className="op-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemDelete}></i>
|
<li className="operation-group-item">
|
||||||
</li>
|
<i className="op-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemDelete}></i>
|
||||||
|
</li>
|
||||||
|
)}
|
||||||
<li className="operation-group-item">
|
<li className="operation-group-item">
|
||||||
<ItemDropdownMenu
|
<ItemDropdownMenu
|
||||||
item={this.props.dirent}
|
item={this.props.dirent}
|
||||||
@@ -503,14 +505,16 @@ class DirentListItem extends React.Component {
|
|||||||
<li className="operation-group-item">
|
<li className="operation-group-item">
|
||||||
<i className="op-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemDownload}></i>
|
<i className="op-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemDownload}></i>
|
||||||
</li>
|
</li>
|
||||||
{showShareBtn &&
|
{showShareBtn && (
|
||||||
<li className="operation-group-item">
|
<li className="operation-group-item">
|
||||||
<i className="op-icon sf2-icon-share" title={gettext('Share')} onClick={this.onItemShare}></i>
|
<i className="op-icon sf2-icon-share" title={gettext('Share')} onClick={this.onItemShare}></i>
|
||||||
</li>
|
</li>
|
||||||
}
|
)}
|
||||||
<li className="operation-group-item">
|
{dirent.permission === 'rw' && (
|
||||||
<i className="op-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemDelete}></i>
|
<li className="operation-group-item">
|
||||||
</li>
|
<i className="op-icon sf2-icon-delete" title={gettext('Delete')} onClick={this.onItemDelete}></i>
|
||||||
|
</li>
|
||||||
|
)}
|
||||||
<li className="operation-group-item">
|
<li className="operation-group-item">
|
||||||
<ItemDropdownMenu
|
<ItemDropdownMenu
|
||||||
item={this.props.dirent}
|
item={this.props.dirent}
|
||||||
|
Reference in New Issue
Block a user