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

search library by repo_name (#3212)

* search library by repo_name

* modify icon
This commit is contained in:
王健辉
2019-04-10 18:08:25 +08:00
committed by Daniel Pan
parent 1100fa8aa7
commit 7a8ef5e0aa
2 changed files with 4 additions and 2 deletions

View File

@@ -31,7 +31,8 @@ class SearchedListItem extends React.Component {
render() {
let { item, currentItem } = this.props;
let fileIconUrl = item.is_dir ? Utils.getFolderIconUrl(false, 192) : Utils.getFileIconUrl(item.name, 192);
let folderIconUrl = item.link_content ? Utils.getFolderIconUrl(false, 192) : Utils.getDefaultLibIconUrl(false);
let fileIconUrl = item.is_dir ? folderIconUrl : Utils.getFileIconUrl(item.name, 192);
let trClass = this.state.highlight ? 'tr-highlight' : '';
if (currentItem) {
if (item.repo_id === currentItem.repo_id && item.path === currentItem.path) {