diff --git a/files/assets/js/group_members_owner.js b/files/assets/js/group_members_owner.js index d44643bc7..d3cfbd692 100644 --- a/files/assets/js/group_members_owner.js +++ b/files/assets/js/group_members_owner.js @@ -1,6 +1,7 @@ const members_tbody = document.getElementById('Members_tbody') -function approve_membership(t, url, uid) { +function approve_membership(t, group, uid) { + url = `/!${group}/${uid}/approve` postToast(t, url, { }, @@ -15,7 +16,8 @@ function approve_membership(t, url, uid) { ); } -function reject_membership(t, url) { +function reject_membership(t, group, uid) { + url = `/!${group}/${uid}/reject` postToast(t, url, { }, diff --git a/files/templates/group_memberships.html b/files/templates/group_memberships.html index c7aa33d57..646f2eecb 100644 --- a/files/templates/group_memberships.html +++ b/files/templates/group_memberships.html @@ -42,12 +42,12 @@ {% if v.id == group.owner.id %}