Use username in challenge member dropdown (#11478)
* update challenge member dropdown and api to display and search by username rather than display name * remove accidental whitespace * fix api test
This commit is contained in:
committed by
Matteo Pagliazzi
parent
2741721161
commit
dfd79c9c1a
@@ -19,7 +19,7 @@
|
||||
:key="member._id"
|
||||
@click="selectMember(member)"
|
||||
>
|
||||
{{ member.profile.name }}
|
||||
@{{ member.auth.local.username }}
|
||||
</b-dropdown-item>
|
||||
</b-dropdown>
|
||||
</template>
|
||||
|
||||
@@ -330,7 +330,7 @@ function _getMembersForItem (type) {
|
||||
}
|
||||
|
||||
if (req.query.search) {
|
||||
query['profile.name'] = { $regex: req.query.search };
|
||||
query['auth.local.username'] = { $regex: req.query.search };
|
||||
}
|
||||
} else if (type === 'group-members') {
|
||||
if (group.type === 'guild') {
|
||||
|
||||
Reference in New Issue
Block a user