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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user