FIX: hide sso email behind a button click and log views (#11186)

This commit is contained in:
Arpit Jalan
2020-11-11 00:42:44 +05:30
committed by GitHub
parent cf4be109e2
commit 00b41437b0
9 changed files with 74 additions and 23 deletions

View File

@ -19,6 +19,7 @@ export default Controller.extend(CanCheckEmails, {
customGroupIdsBuffer: null,
availableGroups: null,
userTitleValue: null,
ssoExternalEmail: null,
showBadges: setting("enable_badges"),
hasLockedTrustLevel: notEmpty("model.manual_locked_trust_level"),
@ -339,5 +340,15 @@ export default Controller.extend(CanCheckEmails, {
}
);
},
checkSsoEmail() {
return ajax(userPath(`${this.model.username_lower}/sso-email.json`), {
data: { context: window.location.pathname },
}).then((result) => {
if (result) {
this.set("ssoExternalEmail", result.email);
}
});
},
},
});