1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Make bulk group member management easier

Add and Remove members separated.

Introduced user list paging size.
This commit is contained in:
McMatts 2018-08-21 15:33:54 +01:00
parent bd2e8ac165
commit 1b16be2505
9 changed files with 130 additions and 93 deletions

View file

@ -169,8 +169,10 @@ export default Service.extend({
},
// matchUsers on firstname, lastname, email
matchUsers(text) {
return this.get('ajax').request('users/match', {
matchUsers(text, limit) {
if (is.null(limit) || is.undefined(limit)) limit = 100;
return this.get('ajax').request(`users/match?limit=${limit}`, {
method: 'POST',
dataType: 'json',
contentType: 'text',