Skip to content

Commit

Permalink
Show group display name in workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 16, 2020
1 parent f7c59ff commit f9b4084
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/workflowengine/js/workflowengine.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/workflowengine/js/workflowengine.js.map

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions apps/workflowengine/src/components/Checks/RequestUserGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9b4084

Please sign in to comment.