contrib: add Admin page to update contributor status. Start migrating from User.backer => User.contributor

This commit is contained in:
Tyler Renelle
2013-11-06 15:49:41 -08:00
parent 3b18c322bc
commit d679fa1e62
9 changed files with 88 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
"use strict";
habitrpg.controller("AdminCtrl", ['$scope', '$rootScope', 'User', 'Members', 'Notification',
function($scope, $rootScope, User, Members, Notification) {
$scope.profile = undefined;
$scope.loadUser = function(uuid){
$scope.profile = Members.Member.get({uid:uuid});
}
$scope.save = function(profile) {
profile.$save(function(){
Notification.text("User updated");
$scope.profile = undefined;
$scope._uuid = undefined;
})
}
}])