Files
habitica/website/public/js/controllers/tavernCtrl.js
T
Keith Holliday c9b7aa8342 Api v3 party tavern fixes (#7191)
* Added check if user is in party before query

* Cached party query. Prevented party request when user is not in party. Updated Party create with no invites

* Update tavern ctrl to use new promise
2016-05-12 16:45:53 +02:00

15 lines
327 B
JavaScript

'use strict';
habitrpg.controller("TavernCtrl", ['$scope', 'Groups', 'User',
function($scope, Groups, User) {
Groups.tavern()
.then(function (tavern) {
$scope.group = tavern;
})
$scope.toggleUserTier = function($event) {
$($event.target).next().toggle();
}
}
]);