1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 01:41:39 +00:00

repair bug

This commit is contained in:
shanshuirenjia
2018-12-08 12:12:05 +08:00
parent 5419f98d95
commit a78754c7e8
2 changed files with 4 additions and 4 deletions

View File

@@ -108,10 +108,10 @@ class RepoListItem extends React.Component {
const share = <a href="#" className={shareIconClassName} title={gettext("Share")} onClick={this.share}></a>;
const unshare = <a href="#" className={unshareIconClassName} title={gettext("Unshare")} onClick={this.unshare}></a>
const deleteOperation = <a href="#" className={deleteIconClassName} title={gettext('Delete')} onClick={this.deleteItem}></a>;
const shareDropdownItem = <DropdownItem onClick={this.share}>{gettext('Share')}</DropdownItem>;
const unshareDropdownItem = <DropdownItem onClick={this.unshare}>{gettext('Unshare')}</DropdownItem>;
if (isPro) {
if (repo.owner_email.indexOf('@seafile_group') != -1) { // group owned repo
if (isStaff) {
@@ -119,7 +119,7 @@ class RepoListItem extends React.Component {
desktopOperations = (
<Fragment>
{share}
<a href="#" className={deleteIconClassName} title={gettext('Delete')} onClick={this.deleteItem}></a>
{deleteOperation}
<Dropdown isOpen={this.state.isOperationShow} toggle={this.toggleOperationMenu}>
{commonToggle}
<DropdownMenu>
@@ -170,7 +170,7 @@ class RepoListItem extends React.Component {
}
const mobileOperations = (
<Dropdown isOpen={this.state.isOperationShow} toggle={this.toggleOperationMenu}>
<Dropdown isOpen={this.state.isItemMenuShow} toggle={this.toggleOperationMenu}>
{commonToggle}
<div className={`${this.state.isItemMenuShow?'':'d-none'}`} onClick={this.toggleOperationMenu}>
<div className="mobile-operation-menu-bg-layer"></div>

View File

@@ -80,10 +80,10 @@
.sf2-icon-move:before {content:"\e029"}
.sf2-icon-menu:before { content: "\e031"; }
.sf2-icon-more:before { content: "\e032"; }
.sf2-icon-x3:before {content:"\e035";}
.sf2-icon-close:before { content:"\e035"; }
.sf2-icon-two-columns:before { content:"\e036"; }
.sf2-icon-tag:before {content:"\e037"}
.sf2-icon-x3:before {content:"\e035";}
/* common class and element style*/
a { color:#eb8205; }