Skip to content

Commit

Permalink
Fix issue where user wasn't notified by error when typed wrong password
Browse files Browse the repository at this point in the history
- Add missing error border when typed wrong password (reference #74)
  • Loading branch information
piotrzarzycki21 committed Nov 29, 2024
1 parent 411fc23 commit e42af8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
_loginFailed = value;
loginFormValidator.loginFailed = value;
dispatchEvent("loginFailed");
loginForm.dispatchEvent("loginFailed");
}
}
Expand Down Expand Up @@ -134,7 +134,7 @@
<j:Form localId="loginForm" percentWidth="100" includeIn="loginInternal">
<j:beads>
<j:FormValidator id="validatorForm" trigger="{btnLogin}" triggerEvent="click" />
<validators:LoginFormValidator localId="loginFormValidator" trigger="{this}" triggerEvent="loginFailed"/>
<validators:LoginFormValidator localId="loginFormValidator" trigger="{loginForm}" triggerEvent="loginFailed"/>
</j:beads>
<controls:CustomFormItem required="true" className="horizontalContentItemsCenteredFormItem">
<j:TextInput id="txtUsername" percentWidth="100">
Expand Down
4 changes: 4 additions & 0 deletions Super.Human.Portal_Royale/src/resources/app-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ a:hover {
cursor: pointer;
}

.jewel.layout.vertical.form.errorBorder {
border: 1px #EC1C24 solid;
}

.jewel.label code {
color: #FFD740 !important;
}
Expand Down

0 comments on commit e42af8d

Please sign in to comment.