mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 02:38:54 +08:00
UX: change emailLogin to info class when empty (#12105)
This commit is contained in:
parent
4739bdac0a
commit
c4ff6def8e
@ -62,7 +62,11 @@ export default Component.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_clearFlash() {
|
_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) {
|
_flash(msg) {
|
||||||
|
@ -310,7 +310,7 @@ export default Controller.extend(ModalFunctionality, {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isEmpty(this.loginName)) {
|
if (isEmpty(this.loginName)) {
|
||||||
this.flash(I18n.t("login.blank_username"), "error");
|
this.flash(I18n.t("login.blank_username"), "info");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user