UX: change emailLogin to info class when empty (#12105)

This commit is contained in:
Kris 2021-02-17 16:28:52 -05:00 committed by GitHub
parent 4739bdac0a
commit c4ff6def8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -62,7 +62,11 @@ export default Component.extend({
},
_clearFlash() {
$("#modal-alert").hide().removeClass("alert-error", "alert-success");
const modalAlert = document.getElementById("modal-alert");
if (modalAlert) {
modalAlert.style.display = "none";
modalAlert.classList.remove("alert-info", "alert-error", "alert-success");
}
},
_flash(msg) {

View File

@ -310,7 +310,7 @@ export default Controller.extend(ModalFunctionality, {
}
if (isEmpty(this.loginName)) {
this.flash(I18n.t("login.blank_username"), "error");
this.flash(I18n.t("login.blank_username"), "info");
return;
}