mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
@@ -152,8 +152,9 @@ habitrpg.controller("PartyCtrl", ['$rootScope','$scope','Groups','Chat','User','
|
||||
}
|
||||
|
||||
$scope.reject = function(party) {
|
||||
Groups.Group.rejectInvite(party.id);
|
||||
User.set({'invitations.party':{}});
|
||||
Groups.Group.rejectInvite(party.id).then(function () {
|
||||
User.sync();
|
||||
});
|
||||
}
|
||||
|
||||
$scope.questInit = function() {
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
p {{::env.t('invitedToNewParty', { partyName: #{newParty}.name })}}
|
||||
p
|
||||
button.btn.btn-success(ng-click='leaveOldPartyAndJoinNewParty(#{newParty}.id, #{newParty}.name)')=env.t('joinNewParty')
|
||||
button.btn.btn-default(ng-click='reject()')=env.t('declineInvitation')
|
||||
button.btn.btn-default(ng-click='reject(#{newParty})')=env.t('declineInvitation')
|
||||
|
||||
Reference in New Issue
Block a user