mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
Wiki search modify (#2346)
* modify search privilege * modify params * modify search module
This commit is contained in:
committed by
zheng xie
parent
83f6485bea
commit
ed65284bda
@@ -1,10 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import { gettext, repoID, serviceUrl, slug, siteRoot } from '../../components/constance';
|
||||
import { gettext, repoID, serviceUrl, slug, siteRoot, isPro } from '../../components/constance';
|
||||
import Search from '../../components/search';
|
||||
import Account from '../../components/account';
|
||||
import MarkdownViewer from '../../components/markdown-viewer';
|
||||
import TreeDirView from '../../components/tree-dir-view/tree-dir-view';
|
||||
|
||||
|
||||
class MainPanel extends Component {
|
||||
|
||||
onMenuClick = () => {
|
||||
@@ -49,7 +50,7 @@ class MainPanel extends Component {
|
||||
<a className="btn btn-secondary btn-topbar" onClick={this.onEditClick}>{gettext("Edit Page")}</a>
|
||||
</div>
|
||||
<div className="common-toolbar">
|
||||
<Search onSearchedClick={this.props.onSearchedClick}/>
|
||||
{isPro && <Search onSearchedClick={this.props.onSearchedClick}/>}
|
||||
<Account />
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user