mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
better group invite handling
This commit is contained in:
@@ -59,11 +59,12 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
||||
|
||||
// ------ Invites ------
|
||||
|
||||
$scope.invitee = '';
|
||||
$scope.invite = function(group, uuid){
|
||||
group.$invite({uuid:uuid}, function(){
|
||||
$scope.invitee = '';
|
||||
$scope.invite = function(group){
|
||||
group.$invite({uuid:group.invitee}, function(){
|
||||
group.invitee = '';
|
||||
alert("User invited to group");
|
||||
}, function(){
|
||||
group.invitee = '';
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user