transfer ownership is not used anymore

This commit is contained in:
Girish Ramakrishnan
2022-05-26 14:32:45 -07:00
parent 74aac4876a
commit 416bfa67a1
3 changed files with 0 additions and 67 deletions

View File

@@ -85,38 +85,6 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
return true;
};
$scope.transferOwnership = {
busy: false,
error: null,
selectedUser: null,
show: function () {
$scope.transferOwnership.error = null;
$scope.transferOwnership.selectedUser = null;
$('#transferOwnershipModal').modal('show');
},
submit: function () {
$scope.transferOwnership.busy = true;
Client.changeOwnership($scope.transferOwnership.selectedUser.id, function (error) {
$scope.transferOwnership.busy = false;
if (error) {
$scope.transferOwnership.error = error.message;
console.error('Unable to change user role:', error);
return;
}
$('#transferOwnershipModal').modal('hide');
// current user was demoted, reload to refresh UI state
window.location.reload();
});
}
};
$scope.userImport = {
busy: false,
done: false,