diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-16 15:34:10 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-16 15:34:10 +0200 |
commit | f9b4084f522f9112f69d672e25e5545302f2341c (patch) | |
tree | baa4cfd114dd9cd9464f6f6163e95615598702e0 /apps/workflowengine/src/components | |
parent | f7c59ffdb56c256cb31f14c39f2f2b4915995e42 (diff) | |
download | nextcloud-server-f9b4084f522f9112f69d672e25e5545302f2341c.tar.gz nextcloud-server-f9b4084f522f9112f69d672e25e5545302f2341c.zip |
Show group display name in workflows
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/workflowengine/src/components')
-rw-r--r-- | apps/workflowengine/src/components/Checks/RequestUserGroup.vue | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/workflowengine/src/components/Checks/RequestUserGroup.vue b/apps/workflowengine/src/components/Checks/RequestUserGroup.vue index c7e0b45b667..f9f6226b4e4 100644 --- a/apps/workflowengine/src/components/Checks/RequestUserGroup.vue +++ b/apps/workflowengine/src/components/Checks/RequestUserGroup.vue @@ -84,14 +84,13 @@ export default { } this.status.isLoading = true - return axios.get(generateOcsUrl('cloud', 2) + 'groups?limit=20&search=' + encodeURI(searchQuery)).then((response) => { - response.data.ocs.data.groups.reduce((obj, item) => { - obj.push({ - id: item, - displayname: item, + return axios.get(generateOcsUrl('cloud', 2) + 'groups/details?limit=20&search=' + encodeURI(searchQuery)).then((response) => { + response.data.ocs.data.groups.forEach((group) => { + this.addGroup({ + id: group.id, + displayname: group.displayname, }) - return obj - }, []).forEach((group) => this.addGroup(group)) + }) this.status.isLoading = false }, (error) => { console.error('Error while loading group list', error.response) |