mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
fix warnings
fix warnings in previous codes
This commit is contained in:
@@ -109,7 +109,7 @@ class MylibRepoListItem extends React.Component {
|
||||
} else {
|
||||
seafileAPI.starItem(this.props.repo.repo_id, '/').then(() => {
|
||||
this.setState({isStarred: !this.state.isStarred});
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ class MylibRepoListItem extends React.Component {
|
||||
<tr className={this.state.highlight ? 'tr-highlight' : ''} onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave} onClick={this.onRepoClick}>
|
||||
<td><img src={iconUrl} title={iconTitle} alt={iconTitle} width="24" /></td>
|
||||
<td>
|
||||
{this.state.isRenaming && (
|
||||
{this.state.isRenaming && (
|
||||
<Rename
|
||||
name={repo.repo_name}
|
||||
onRenameConfirm={this.onRenameConfirm}
|
||||
@@ -351,7 +351,7 @@ class MylibRepoListItem extends React.Component {
|
||||
</ModalPortal>
|
||||
)}
|
||||
</Fragment>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -61,7 +61,7 @@ class TableBody extends Component {
|
||||
|
||||
getThumbnails() {
|
||||
let items = this.state.items.filter((item) => {
|
||||
return Utils.imageCheck(item.obj_name) && !item.repo_encrypted;
|
||||
return Utils.imageCheck(item.obj_name) && !item.repo_encrypted;
|
||||
});
|
||||
if (items.length == 0) {
|
||||
return ;
|
||||
@@ -175,8 +175,8 @@ class Item extends Component {
|
||||
</td>
|
||||
<td>
|
||||
{ data.is_dir ?
|
||||
<Link to={data.dirent_view_url}>{data.obj_name}</Link> :
|
||||
<a className="normal" href={data.dirent_view_url} target="_blank">{data.obj_name}</a>
|
||||
<Link to={data.dirent_view_url}>{data.obj_name}</Link> :
|
||||
<a className="normal" href={data.dirent_view_url} target="_blank">{data.obj_name}</a>
|
||||
}
|
||||
</td>
|
||||
<td>{data.repo_name}</td>
|
||||
@@ -198,8 +198,8 @@ class Item extends Component {
|
||||
</td>
|
||||
<td>
|
||||
{ data.is_dir ?
|
||||
<Link to={data.dirent_view_url}>{data.obj_name}</Link> :
|
||||
<a className="normal" href={data.dirent_view_url} target="_blank">{data.obj_name}</a>
|
||||
<Link to={data.dirent_view_url}>{data.obj_name}</Link> :
|
||||
<a className="normal" href={data.dirent_view_url} target="_blank">{data.obj_name}</a>
|
||||
}
|
||||
<br />
|
||||
<span className="dirent-meta-info">{data.repo_name}</span>
|
||||
|
@@ -123,9 +123,9 @@ class Wikis extends Component {
|
||||
<div className="cur-view-toolbar">
|
||||
<span className="sf2-icon-menu side-nav-toggle hidden-md-up d-md-none" title="Side Nav Menu" onClick={this.props.onShowSidePanel}></span>
|
||||
<div className="operation">
|
||||
<Button className="btn btn-secondary operation-item" onClick={this.onSelectToggle}>
|
||||
<i className="fa fa-plus-square text-secondary mr-1"></i>{gettext('Publish a Library')}
|
||||
</Button>
|
||||
<Button className="btn btn-secondary operation-item" onClick={this.onSelectToggle}>
|
||||
<i className="fa fa-plus-square text-secondary mr-1"></i>{gettext('Publish a Library')}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<CommonToolbar onSearchedClick={this.props.onSearchedClick} />
|
||||
|
Reference in New Issue
Block a user