mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 11:51:27 +00:00
repair search bug (#5644)
This commit is contained in:
@@ -248,7 +248,7 @@ class OrgGroupsSearchGroups extends Component {
|
|||||||
<div className="cur-view-content">
|
<div className="cur-view-content">
|
||||||
<div className="mt-4 mb-6">
|
<div className="mt-4 mb-6">
|
||||||
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Groups')}</h4>
|
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Groups')}</h4>
|
||||||
<Form>
|
<Form tag={'div'}>
|
||||||
<FormGroup row>
|
<FormGroup row>
|
||||||
<Col sm={5}>
|
<Col sm={5}>
|
||||||
<Input type="text" name="query" value={query} placeholder={gettext('Search groups')} onChange={this.handleInputChange} />
|
<Input type="text" name="query" value={query} placeholder={gettext('Search groups')} onChange={this.handleInputChange} />
|
||||||
|
@@ -155,7 +155,7 @@ class OrgUsersSearchUsers extends Component {
|
|||||||
<div className="cur-view-content">
|
<div className="cur-view-content">
|
||||||
<div className="mt-4 mb-6">
|
<div className="mt-4 mb-6">
|
||||||
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Users')}</h4>
|
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Users')}</h4>
|
||||||
<Form>
|
<Form tag={'div'}>
|
||||||
<FormGroup row>
|
<FormGroup row>
|
||||||
<Col sm={5}>
|
<Col sm={5}>
|
||||||
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />
|
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />
|
||||||
|
@@ -104,7 +104,7 @@ class SearchGroups extends Component {
|
|||||||
<div className="mt-4 mb-6">
|
<div className="mt-4 mb-6">
|
||||||
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Groups')}</h4>
|
<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>
|
<p className="text-secondary small">{gettext('Tip: you can search by keyword in name.')}</p>
|
||||||
<Form>
|
<Form tag={'div'}>
|
||||||
<FormGroup row>
|
<FormGroup row>
|
||||||
<Label for="name" sm={1}>{gettext('Name')}</Label>
|
<Label for="name" sm={1}>{gettext('Name')}</Label>
|
||||||
<Col sm={5}>
|
<Col sm={5}>
|
||||||
|
@@ -100,7 +100,7 @@ class SearchOrgs extends Component {
|
|||||||
<div className="mt-4 mb-6">
|
<div className="mt-4 mb-6">
|
||||||
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Organizations')}</h4>
|
<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>
|
<p className="text-secondary small">{gettext('Tip: you can search by keyword in name.')}</p>
|
||||||
<Form>
|
<Form tag={'div'}>
|
||||||
<FormGroup row>
|
<FormGroup row>
|
||||||
<Label for="name" sm={1}>{gettext('Name')}</Label>
|
<Label for="name" sm={1}>{gettext('Name')}</Label>
|
||||||
<Col sm={5}>
|
<Col sm={5}>
|
||||||
|
@@ -32,6 +32,7 @@ class SearchRepos extends Component {
|
|||||||
seafileAPI.sysAdminSearchRepos(name).then((res) => {
|
seafileAPI.sysAdminSearchRepos(name).then((res) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
loading: false,
|
loading: false,
|
||||||
|
errorMsg: '',
|
||||||
repos: res.data.repo_list
|
repos: res.data.repo_list
|
||||||
});
|
});
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
@@ -91,7 +92,7 @@ class SearchRepos extends Component {
|
|||||||
<div className="mt-4 mb-6">
|
<div className="mt-4 mb-6">
|
||||||
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Libraries')}</h4>
|
<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>
|
<p className="text-secondary small">{gettext('Tip: you can search by keyword in name or ID.')}</p>
|
||||||
<Form>
|
<Form tag={'div'}>
|
||||||
<FormGroup row>
|
<FormGroup row>
|
||||||
<Label for="name" sm={1}>{gettext('Name or ID')}</Label>
|
<Label for="name" sm={1}>{gettext('Name or ID')}</Label>
|
||||||
<Col sm={5}>
|
<Col sm={5}>
|
||||||
|
@@ -296,7 +296,7 @@ class SearchUsers extends Component {
|
|||||||
<div className="cur-view-content">
|
<div className="cur-view-content">
|
||||||
<div className="mt-4 mb-6">
|
<div className="mt-4 mb-6">
|
||||||
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Users')}</h4>
|
<h4 className="border-bottom font-weight-normal mb-2 pb-1">{gettext('Search Users')}</h4>
|
||||||
<Form>
|
<Form tag={'div'}>
|
||||||
<FormGroup row>
|
<FormGroup row>
|
||||||
<Col sm={5}>
|
<Col sm={5}>
|
||||||
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />
|
<Input type="text" name="query" value={query} placeholder={gettext('Search users')} onChange={this.handleInputChange} />
|
||||||
|
Reference in New Issue
Block a user