Increase search limit on team add user and improve placeholder (#29258)

This commit is contained in:
Dominik Prokop 2020-11-20 08:57:19 +01:00 committed by GitHub
parent 671b319315
commit a312f1ae80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ export class UserPicker extends Component<Props, State> {
}
return getBackendSrv()
.get(`/api/org/users/lookup?query=${query}&limit=10`)
.get(`/api/org/users/lookup?query=${query}&limit=100`)
.then((result: any) => {
return result.map((user: any) => ({
id: user.userId,
@ -71,7 +71,7 @@ export class UserPicker extends Component<Props, State> {
defaultOptions={true}
loadOptions={this.debouncedSearch}
onChange={onSelected}
placeholder="Select user"
placeholder="Start typing to search for user"
noOptionsMessage="No users found"
/>
</div>