Skip to content

Commit

Permalink
Moved dept acc check function to general controller (uhawaii-system-i…
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 8066ca2 commit 594c9d1
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1997,19 +1997,6 @@
$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 594c9d1

Please sign in to comment.