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
|
this.status.isLoading = true
|
||||||
return axios.get(generateOcsUrl('cloud', 2) + 'groups?limit=20&search=' + encodeURI(searchQuery)).then((response) => {
|
return axios.get(generateOcsUrl('cloud', 2) + 'groups/details?limit=20&search=' + encodeURI(searchQuery)).then((response) => {
|
||||||
response.data.ocs.data.groups.reduce((obj, item) => {
|
response.data.ocs.data.groups.forEach((group) => {
|
||||||
obj.push({
|
this.addGroup({
|
||||||
id: item,
|
id: group.id,
|
||||||
displayname: item,
|
displayname: group.displayname,
|
||||||
})
|
})
|
||||||
return obj
|
})
|
||||||
}, []).forEach((group) => this.addGroup(group))
|
|
||||||
this.status.isLoading = false
|
this.status.isLoading = false
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.error('Error while loading group list', error.response)
|
console.error('Error while loading group list', error.response)
|
||||||
|
|
Loading…
Reference in New Issue