Merge pull request #22885 from nextcloud/bugfix/noid/show-group-displayname-in-workflows
Show group display name in workflows
This commit is contained in:
commit
5a4c7a92de
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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…
Reference in New Issue