Better handling of affiliation change submission.

This commit is contained in:
Paulo Reis
2018-07-12 16:37:09 +01:00
committed by James Allen
parent 59008b4a51
commit 67e2f6f942
@@ -63,8 +63,11 @@ define [
$scope.affiliationToChange.role,
$scope.affiliationToChange.department
)
.then () -> _getUserEmails()
.catch () -> $scope.ui.hasError = true
.then () ->
_reset()
_getUserEmails()
.catch () ->
$scope.ui.hasError = true
$scope.cancelAffiliationChange = (email) ->
$scope.affiliationToChange.email = ""