Fix take ownership of organizations

Take ownership code got moved into its own directive in Oct, but we forgot we have a call in superuser panel for orgs as well. Fix this, and simplify the call sites
This commit is contained in:
Joseph Schorr 2017-03-22 12:25:20 -04:00
parent 789e35668c
commit 1d3af2b0bd
4 changed files with 32 additions and 12 deletions

View file

@ -228,10 +228,9 @@ angular.module('quay').directive('manageUserTab', function () {
});
};
$scope.askTakeOwnership = function (entity, is_org) {
$scope.askTakeOwnership = function (entity) {
$scope.takeOwnershipInfo = {
'entity': entity,
'is_org': is_org
'entity': entity
};
};