Skip to content

Commit

Permalink
Merge pull request #2392 from LibreSign/bugfix/group-name
Browse files Browse the repository at this point in the history
Filter groups by selected groups
  • Loading branch information
vitormattos authored Feb 29, 2024
2 parents db803ff + 6895e0a commit fc22dcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/Settings/AllowedGroups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export default {
generateOcsUrl('/apps/provisioning_api/api/v1/config/apps/libresign/groups_request_sign'),
)
if (response.data.ocs.data.data !== '') {
this.groupsSelected = JSON.parse(response.data.ocs.data.data)
const groupsSelected = JSON.parse(response.data.ocs.data.data)
this.groupsSelected = this.groups.filter(group => {
return groupsSelected.indexOf(group.id) !== -1
})
}
this.loadingGroups = false
},
Expand Down

0 comments on commit fc22dcd

Please sign in to comment.