Support multi-group user search
This commit is contained in:
committed by
Guo Xiang Tan
parent
8728850452
commit
e7ee556e87
@@ -72,7 +72,7 @@ export default TextField.extend({
|
||||
allowedUsers,
|
||||
includeMentionableGroups,
|
||||
includeMessageableGroups,
|
||||
group: userSelectorComponent.group,
|
||||
groupMembersOf: userSelectorComponent.groupMembersOf,
|
||||
allowEmails
|
||||
});
|
||||
},
|
||||
|
||||
@@ -16,7 +16,7 @@ function performSearch(
|
||||
includeMentionableGroups,
|
||||
includeMessageableGroups,
|
||||
allowedUsers,
|
||||
group,
|
||||
groupMembersOf,
|
||||
resultsFn
|
||||
) {
|
||||
var cached = cache[term];
|
||||
@@ -40,7 +40,7 @@ function performSearch(
|
||||
include_groups: includeGroups,
|
||||
include_mentionable_groups: includeMentionableGroups,
|
||||
include_messageable_groups: includeMessageableGroups,
|
||||
group: group,
|
||||
groups: groupMembersOf,
|
||||
topic_allowed_users: allowedUsers
|
||||
}
|
||||
});
|
||||
@@ -140,7 +140,7 @@ export default function userSearch(options) {
|
||||
includeMessageableGroups = options.includeMessageableGroups,
|
||||
allowedUsers = options.allowedUsers,
|
||||
topicId = options.topicId,
|
||||
group = options.group;
|
||||
groupMembersOf = options.groupMembersOf;
|
||||
|
||||
if (oldSearch) {
|
||||
oldSearch.abort();
|
||||
@@ -172,7 +172,7 @@ export default function userSearch(options) {
|
||||
includeMentionableGroups,
|
||||
includeMessageableGroups,
|
||||
allowedUsers,
|
||||
group,
|
||||
groupMembersOf,
|
||||
function(r) {
|
||||
clearTimeout(clearPromise);
|
||||
resolve(organizeResults(r, options));
|
||||
|
||||
Reference in New Issue
Block a user