Add initial UI for transferring ownership

This commit is contained in:
Johannes Zellner
2021-01-14 17:14:32 +01:00
parent 3d441748c4
commit 117b58fcbe
2 changed files with 37 additions and 0 deletions

View File

@@ -53,6 +53,23 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
return (roleInt1 - roleInt2) >= 0;
};
$scope.transferOwnership = {
busy: false,
error: null,
userInfo: {},
show: function (userInfo) {
$scope.transferOwnership.error = null;
$scope.transferOwnership.userInfo = userInfo;
$('#transferOwnershipModal').modal('show');
},
submit: function () {
$scope.transferOwnership.busy = true;
}
};
$scope.userremove = {
busy: false,
error: null,