Skip to content

Commit

Permalink
Add new test for list adding owners and fix existing tests (uhawaii-s…
Browse files Browse the repository at this point in the history
  • Loading branch information
jarellb authored and Michelle Ho committed Nov 14, 2024
1 parent 57ee61b commit 8066ca2
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,19 @@
$scope.excludeDisable = true;
}
};

/**
* Helper - addMembers, displayAddModal
* Checks if a member is a departmental account
* A departmental account is characterized by having the same uid as its uhUuid, or having a blank uhUuid
* @param {object[]} membersToAdd - members to add to group
* @returns {boolean} - True if a member is a departmental account
*/
$scope.checkForDeptAccount = (membersToAdd) => {
return membersToAdd.some(member =>
member['uid'] === member['uhUuid'] || member['uhUuid'] === ""
);
}
}

function SyncDestModalController($scope, $uibModalInstance, isSingular, syncDestDescription, Message) {
Expand Down

0 comments on commit 8066ca2

Please sign in to comment.