mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-22 16:20:44 +01:00
79a05b389f
- [wip] ws support
19 lines
527 B
JavaScript
19 lines
527 B
JavaScript
define(function () {
|
|
app.registerController('ProjectUsersCtrl', ['$scope', '$http', 'Project', function ($scope, $http, Project) {
|
|
$scope.reload = function () {
|
|
$http.get(Project.getURL() + '/users').success(function (users) {
|
|
$scope.users = users;
|
|
});
|
|
}
|
|
|
|
$scope.remove = function (user) {
|
|
$http.delete(Project.getURL() + '/users/' + user.id).success(function () {
|
|
$scope.reload();
|
|
}).error(function () {
|
|
swal('error', 'could not delete user..', 'error');
|
|
});
|
|
}
|
|
|
|
$scope.reload();
|
|
}]);
|
|
}); |