mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +00:00
12.0 integrate filename seasearch (#6412)
* seafevents integrate filename seasearch * feat: integrate filename seasearch * control seasearch open and close at seafevents conf * fix post redundant api * feat/seasearch: change seasearch control option * cancel seasearch url verify * fix bug * add es search control field * delete redundant seafile ai code * update --------- Co-authored-by: ‘JoinTyang’ <yangtong1009@163.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { isPro, gettext, showLogoutIcon, enableSeafileAI } from '../../utils/constants';
|
||||
import { isPro, gettext, showLogoutIcon, enableSeasearch, enableElasticsearch } from '../../utils/constants';
|
||||
import Search from '../search/search';
|
||||
import AISearch from '../search/ai-search';
|
||||
import SearchByName from '../search/search-by-name';
|
||||
@@ -65,7 +65,7 @@ class CommonToolbar extends React.Component {
|
||||
const placeholder = searchPlaceholder || gettext('Search files');
|
||||
|
||||
if (isPro) {
|
||||
if (enableSeafileAI) {
|
||||
if (enableSeasearch && !enableElasticsearch) {
|
||||
return (
|
||||
<AISearch
|
||||
repoID={repoID}
|
||||
|
Reference in New Issue
Block a user