userfriendlized memberrequest booleans
This commit is contained in:
@@ -111,6 +111,10 @@ app.controller("applController", function($scope, $http, $route, $routeParams, $
|
||||
$scope.applGetFunction = function() {
|
||||
$http.get("/members/api/requests").then(function(response){
|
||||
$scope.applications = response.data;
|
||||
_.each($scope.applications, function(a){
|
||||
a.member.jas = a.member.jas ? "Kyllä" : "Ei";
|
||||
a.member.AYY = a.member.AYY ? "Kyllä" : "Ei";
|
||||
});
|
||||
});
|
||||
};
|
||||
$scope.applGetFunction();
|
||||
|
||||
Reference in New Issue
Block a user