Browse Source

Show group display name in workflows

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v20.0.0RC1
Joas Schilling 3 years ago
parent
commit
f9b4084f52
No account linked to committer's email address

+ 1
- 1
apps/workflowengine/js/workflowengine.js
File diff suppressed because it is too large
View File


+ 1
- 1
apps/workflowengine/js/workflowengine.js.map
File diff suppressed because it is too large
View File


+ 6
- 7
apps/workflowengine/src/components/Checks/RequestUserGroup.vue View File

@@ -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)

Loading…
Cancel
Save