1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

modify some style

This commit is contained in:
zxj96
2019-04-25 16:29:41 +08:00
parent 17dba3e3c7
commit 4002e1aad0
3 changed files with 8 additions and 9 deletions

View File

@@ -414,11 +414,10 @@ class DirentListItem extends React.Component {
}
let isShowShareBtn = false;
if (canGenerateShareLink) {
isShowShareBtn = true;
} else {
if (this.props.showShareBtn) {
if (this.props.showShareBtn) {
if (canGenerateShareLink) {
isShowShareBtn = true;
} else {
if (dirent.type === 'dir') {
isShowShareBtn = true;
} else {
@@ -437,7 +436,7 @@ class DirentListItem extends React.Component {
<li className="operation-group-item">
<i className="op-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemDownload}></i>
</li>
{this.props.showShareBtn && isShowShareBtn &&
{isShowShareBtn &&
<li className="operation-group-item">
<i className="op-icon sf2-icon-share" title={gettext('Share')} onClick={this.onItemShare}></i>
</li>
@@ -467,7 +466,7 @@ class DirentListItem extends React.Component {
<li className="operation-group-item">
<i className="op-icon sf2-icon-download" title={gettext('Download')} onClick={this.onItemDownload}></i>
</li>
{this.props.showShareBtn && isShowShareBtn &&
{isShowShareBtn &&
<li className="operation-group-item">
<i className="op-icon sf2-icon-share" title={gettext('Share')} onClick={this.onItemShare}></i>
</li>