mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
special handling of Header Party, just have it's own controller and do specific-handling. Also, removing MenuCtrl & StatsCtrl - they weren't used TMK, I think twas a vestige of mobile. @paglias give that a gander
11 lines
276 B
JavaScript
11 lines
276 B
JavaScript
"use strict";
|
|
|
|
habitrpg.controller("HeaderCtrl", ['$scope', 'Groups', 'User',
|
|
function($scope, Groups, User) {
|
|
$scope.party = Groups.party();
|
|
$scope.partyMinusSelf = _.filter($scope.party, function(member){
|
|
return member._id !== User.user._id;
|
|
});
|
|
}
|
|
]);
|