mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Tavern party challenges invites fix (#7394)
* Added challenges and invitations to party * Loaded tavern challenges * Updated group and quest services tests
This commit is contained in:
committed by
Matteo Pagliazzi
parent
a210542e0a
commit
b378e41f2c
@@ -1,10 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
habitrpg.controller("TavernCtrl", ['$scope', 'Groups', 'User',
|
||||
function($scope, Groups, User) {
|
||||
habitrpg.controller("TavernCtrl", ['$scope', 'Groups', 'User', 'Challenges',
|
||||
function($scope, Groups, User, Challenges) {
|
||||
Groups.tavern()
|
||||
.then(function (tavern) {
|
||||
$scope.group = tavern;
|
||||
Challenges.getGroupChallenges($scope.group._id)
|
||||
.then(function (response) {
|
||||
$scope.group.challenges = response.data.data;
|
||||
});
|
||||
})
|
||||
|
||||
$scope.toggleUserTier = function($event) {
|
||||
|
||||
Reference in New Issue
Block a user