mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
revert previous commit, reload after party invite accept
This commit is contained in:
@@ -173,9 +173,9 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
|
|||||||
$scope.join = function(party){
|
$scope.join = function(party){
|
||||||
var group = new Groups.Group({_id: party.id, name: party.name});
|
var group = new Groups.Group({_id: party.id, name: party.name});
|
||||||
// there a better way to access GroupsCtrl.groups.party?
|
// there a better way to access GroupsCtrl.groups.party?
|
||||||
group.$join(function(party){
|
group.$join(function(){
|
||||||
$scope.group = party;
|
|
||||||
User.user.invitations.party = undefined;
|
User.user.invitations.party = undefined;
|
||||||
|
location.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$scope.leave = function(group){
|
$scope.leave = function(group){
|
||||||
|
|||||||
Reference in New Issue
Block a user