|
@@ -87,8 +87,9 @@ define(['base'], App =>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$scope.linkInstitutionAcct = function(email, institutionId) {
|
|
$scope.linkInstitutionAcct = function(email, institutionId) {
|
|
|
|
|
+ _resetMakingRequestType()
|
|
|
$scope.ui.isMakingRequest = true
|
|
$scope.ui.isMakingRequest = true
|
|
|
- $scope.ui.isLinkingInstitution = true
|
|
|
|
|
|
|
+ $scope.ui.isProcessing = true
|
|
|
$window.location.href = `${
|
|
$window.location.href = `${
|
|
|
window.samlInitPath
|
|
window.samlInitPath
|
|
|
}?university_id=${institutionId}&auto=true&email=${email}`
|
|
}?university_id=${institutionId}&auto=true&email=${email}`
|
|
@@ -197,6 +198,7 @@ define(['base'], App =>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$scope.resendConfirmationEmail = function(userEmail) {
|
|
$scope.resendConfirmationEmail = function(userEmail) {
|
|
|
|
|
+ _resetMakingRequestType()
|
|
|
$scope.ui.isResendingConfirmation = true
|
|
$scope.ui.isResendingConfirmation = true
|
|
|
return _monitorRequest(
|
|
return _monitorRequest(
|
|
|
UserAffiliationsDataService.resendConfirmationEmail(userEmail.email)
|
|
UserAffiliationsDataService.resendConfirmationEmail(userEmail.email)
|
|
@@ -232,16 +234,20 @@ define(['base'], App =>
|
|
|
return ($scope.ui.showManualUniversitySelectionUI = false)
|
|
return ($scope.ui.showManualUniversitySelectionUI = false)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ var _resetMakingRequestType = function() {
|
|
|
|
|
+ $scope.ui.isLoadingEmails = false
|
|
|
|
|
+ $scope.ui.isProcessing = false
|
|
|
|
|
+ $scope.ui.isResendingConfirmation = false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
var _reset = function() {
|
|
var _reset = function() {
|
|
|
$scope.ui = {
|
|
$scope.ui = {
|
|
|
hasError: false,
|
|
hasError: false,
|
|
|
errorMessage: '',
|
|
errorMessage: '',
|
|
|
showChangeAffiliationUI: false,
|
|
showChangeAffiliationUI: false,
|
|
|
isMakingRequest: false,
|
|
isMakingRequest: false,
|
|
|
- isLinkingInstitution: false,
|
|
|
|
|
isLoadingEmails: false,
|
|
isLoadingEmails: false,
|
|
|
- isAddingNewEmail: false,
|
|
|
|
|
- isResendingConfirmation: false
|
|
|
|
|
|
|
+ isAddingNewEmail: false
|
|
|
}
|
|
}
|
|
|
_resetAffiliationToChange()
|
|
_resetAffiliationToChange()
|
|
|
_resetNewAffiliation()
|
|
_resetNewAffiliation()
|
|
@@ -277,6 +283,7 @@ define(['base'], App =>
|
|
|
|
|
|
|
|
// Populates the emails table
|
|
// Populates the emails table
|
|
|
var _getUserEmails = function() {
|
|
var _getUserEmails = function() {
|
|
|
|
|
+ _resetMakingRequestType()
|
|
|
$scope.ui.isLoadingEmails = true
|
|
$scope.ui.isLoadingEmails = true
|
|
|
return _monitorRequest(UserAffiliationsDataService.getUserEmails())
|
|
return _monitorRequest(UserAffiliationsDataService.getUserEmails())
|
|
|
.then(emails => {
|
|
.then(emails => {
|