1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 19:01:42 +00:00

repair search bug (#5644)

This commit is contained in:
杨顺强
2023-09-15 13:37:01 +08:00
committed by GitHub
parent 439543d8bb
commit a173d4fb66
6 changed files with 7 additions and 6 deletions

View File

@@ -248,7 +248,7 @@ class OrgGroupsSearchGroups extends Component {
<div className="cur-view-content">
<div className="mt-4 mb-6">
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Groups')}</h4>
<Form>
<Form tag={'div'}>
<FormGroup row>
<Col sm={5}>
<Input type="text" name="query" value={query} placeholder={gettext('Search groups')} onChange={this.handleInputChange} />

View File

@@ -155,7 +155,7 @@ class OrgUsersSearchUsers extends Component {
<div className="cur-view-content">
<div className="mt-4 mb-6">
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Users')}</h4>
<Form>
<Form tag={'div'}>
<FormGroup row>
<Col sm={5}>
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />

View File

@@ -104,7 +104,7 @@ class SearchGroups extends Component {
<div className="mt-4 mb-6">
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Groups')}</h4>
<p className="text-secondary small">{gettext('Tip: you can search by keyword in name.')}</p>
<Form>
<Form tag={'div'}>
<FormGroup row>
<Label for="name" sm={1}>{gettext('Name')}</Label>
<Col sm={5}>

View File

@@ -100,7 +100,7 @@ class SearchOrgs extends Component {
<div className="mt-4 mb-6">
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Organizations')}</h4>
<p className="text-secondary small">{gettext('Tip: you can search by keyword in name.')}</p>
<Form>
<Form tag={'div'}>
<FormGroup row>
<Label for="name" sm={1}>{gettext('Name')}</Label>
<Col sm={5}>

View File

@@ -32,6 +32,7 @@ class SearchRepos extends Component {
seafileAPI.sysAdminSearchRepos(name).then((res) => {
this.setState({
loading: false,
errorMsg: '',
repos: res.data.repo_list
});
}).catch((error) => {
@@ -91,7 +92,7 @@ class SearchRepos extends Component {
<div className="mt-4 mb-6">
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Libraries')}</h4>
<p className="text-secondary small">{gettext('Tip: you can search by keyword in name or ID.')}</p>
<Form>
<Form tag={'div'}>
<FormGroup row>
<Label for="name" sm={1}>{gettext('Name or ID')}</Label>
<Col sm={5}>

View File

@@ -296,7 +296,7 @@ class SearchUsers extends Component {
<div className="cur-view-content">
<div className="mt-4 mb-6">
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Users')}</h4>
<Form>
<Form tag={'div'}>
<FormGroup row>
<Col sm={5}>
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />