Merge pull request #22885 from nextcloud/bugfix/noid/show-group-displayname-in-workflows

Show group display name in workflows
This commit is contained in:
Morris Jobke 2020-09-17 07:47:21 +02:00 committed by GitHub
commit 5a4c7a92de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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)