mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
add/remove group membership
This commit is contained in:
parent
0b5ed8fd9e
commit
ed11c0ad11
17 changed files with 287 additions and 87 deletions
|
@ -64,8 +64,13 @@ export default Service.extend({
|
|||
},
|
||||
|
||||
// Returns all active and inactive users for organization.
|
||||
getComplete() {
|
||||
return this.get('ajax').request(`users?active=0`).then((response) => {
|
||||
// Only available for admins and limits results to max. 100 users.
|
||||
// Takes filter for user search criteria.
|
||||
getComplete(filter) {
|
||||
filter = filter.trim();
|
||||
if (filter.length > 0) filter = encodeURIComponent(filter);
|
||||
|
||||
return this.get('ajax').request(`users?active=0&filter=${filter}`).then((response) => {
|
||||
return response.map((obj) => {
|
||||
let data = this.get('store').normalize('user', obj);
|
||||
return this.get('store').push(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue