]> source.dussan.org Git - gitea.git/commit
Show direct match on top for user search (#17303)
authorMaximilian Weiler <16721506+maweil@users.noreply.github.com>
Thu, 14 Oct 2021 23:48:47 +0000 (01:48 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 23:48:47 +0000 (01:48 +0200)
commit030f696cdd797734764d595d0f1dd763add07330
tree19063e01bad10b00eeb7157aea504ca47e1405bf
parentfa8b8c055d3131fd3dff1b943ed1a20f7044088f
Show direct match on top for user search (#17303)

This PR makes sure that direct matches in the user search always show on top of the result list.

The following places were checked to follow the desired behavior now:
- Search when adding a user to a team
- Search when adding a user as a collaborator to a repository

Signed-off-by: Maximilian Weiler <16721506+maweil@users.noreply.github.com>
web_src/js/index.js