From e19882455a3984d2a4779ce7bb46eae5c1deefda Mon Sep 17 00:00:00 2001 From: Tim Alby Date: Mon, 27 Aug 2018 11:32:24 +0200 Subject: [PATCH] improve affiliation endorsement button - design as button instead of link - disable unless role and department are set --- services/web/app/views/user/settings/user-affiliations.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/user/settings/user-affiliations.pug b/services/web/app/views/user/settings/user-affiliations.pug index 0a08a83ae2..fea88bec9a 100644 --- a/services/web/app/views/user/settings/user-affiliations.pug +++ b/services/web/app/views/user/settings/user-affiliations.pug @@ -57,9 +57,9 @@ form.row( show-role-and-department="true" ) .affiliation-change-actions.small - a( - href + button.btn.btn-sm.btn-success( ng-click="saveAffiliationChange(userEmail);" + ng-disabled="!(affiliationToChange.role && affiliationToChange.department)" ) #{translate("save_or_cancel-save")} |  #{translate("save_or_cancel-or" )}  a(