Merge pull request #3064 from overleaf/ta-manage-multiple-groups

Allow Users to Manage Multiple Groups

GitOrigin-RevId: c918da0114cdd1d679223f69d81159b4c2608874
This commit is contained in:
Timothée Alby
2020-08-13 02:06:20 +00:00
committed by Copybot
parent 29f09c50c2
commit 8cd6e7ccfc
9 changed files with 41 additions and 89 deletions
@@ -148,7 +148,10 @@ App.controller('LeaveGroupModalController', function(
return $http({
url: '/subscription/group/user',
method: 'DELETE',
params: { admin_user_id: $scope.admin_id, _csrf: window.csrfToken }
params: {
subscriptionId: $scope.subscriptionId,
_csrf: window.csrfToken
}
})
.then(() => location.reload())
.catch(() => console.log('something went wrong changing plan'))
@@ -158,8 +161,8 @@ App.controller('LeaveGroupModalController', function(
})
App.controller('GroupMembershipController', function($scope, $modal) {
$scope.removeSelfFromGroup = function(admin_id) {
$scope.admin_id = admin_id
$scope.removeSelfFromGroup = function(subscriptionId) {
$scope.subscriptionId = subscriptionId
return $modal.open({
templateUrl: 'LeaveGroupModalTemplate',
controller: 'LeaveGroupModalController',