mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-01 19:46:22 +00:00
fix search folder in tag view
This commit is contained in:
parent
7a7079ed48
commit
9249e4da17
@ -597,7 +597,8 @@ class Search extends Component {
|
|||||||
if (this.props.repoID) {
|
if (this.props.repoID) {
|
||||||
const { path } = this.props;
|
const { path } = this.props;
|
||||||
const isMetadataView = path && path.startsWith('/' + PRIVATE_FILE_TYPE.FILE_EXTENDED_PROPERTIES);
|
const isMetadataView = path && path.startsWith('/' + PRIVATE_FILE_TYPE.FILE_EXTENDED_PROPERTIES);
|
||||||
if (path && path !== '/' && !this.props.isViewFile && !isMetadataView) {
|
const isTagView = path && path.startsWith('/' + PRIVATE_FILE_TYPE.TAGS_PROPERTIES);
|
||||||
|
if (path && path !== '/' && !this.props.isViewFile && !isMetadataView && !isTagView) {
|
||||||
return (
|
return (
|
||||||
<div className="search-types">
|
<div className="search-types">
|
||||||
<div className={`search-types-repo ${highlightIndex === 0 ? 'search-types-highlight' : ''}`} onClick={this.searchRepo} tabIndex={0}>
|
<div className={`search-types-repo ${highlightIndex === 0 ? 'search-types-highlight' : ''}`} onClick={this.searchRepo} tabIndex={0}>
|
||||||
|
Loading…
Reference in New Issue
Block a user