Commit 775bcbd1 authored by Israel's avatar Israel

tab index for the inputs, dialog height and placeholder removed

parent 466cec23
......@@ -67,7 +67,7 @@ export class ChangePasswordComponent implements OnInit {
this.FormGroup.valueChanges.subscribe(data => {
if (data.newPassword != null)
this.changeProgressBar(PasswordStrength.measureStrength(data.newPassword));
});
});
}
// Progress bar for password strength
......@@ -91,9 +91,10 @@ export class ChangePasswordComponent implements OnInit {
// Uses MatDialogRef
openDialog(title: string, message: string) {
let refDialog = this.dialog.open(DialogOverview, {
width: '300px',
data: { Title: title, Message: message }
this.dialog.open(DialogOverview, {
width: '300px',
height: '300px',
data: { Title: title, Message: message }
});
}
......@@ -156,9 +157,8 @@ export class ChangePasswordComponent implements OnInit {
this.clean('success');
},
errorResponse => {
this.ErrorAlertMessage = errorResponse.message ? errorResponse.message : 'Password Submission Error';
errorResponse.error.errors.forEach((error: any) => {
this.ErrorAlertMessage += " " + error.message;
this.ErrorAlertMessage += error.message;
});
this.openSnackBar(this.ErrorAlertMessage, 'OK');
this.clean('error');
......
......@@ -50,7 +50,8 @@
name="Username"
type="{{ViewOptions.defaultDomain ? 'text': 'email'}}"
placeholder="{{ViewOptions.changePasswordForm.usernamePlaceholder}}"
required>
required
tabindex="1">
<mat-hint>
<strong>
{{ViewOptions.defaultDomain ? ViewOptions.changePasswordForm.usernameDefaultDomainHelperBlock : ViewOptions.changePasswordForm.usernameHelpblock }}
......@@ -85,6 +86,7 @@
name="CurrentPassword"
type="password"
placeholder="{{ViewOptions.changePasswordForm.currentPasswordPlaceholder}}"
tabindex="2"
>
<mat-hint>
<strong>
......@@ -119,6 +121,7 @@
#NewPassword
type="password"
placeholder="{{ViewOptions.changePasswordForm.newPasswordPlaceholder}}"
tabindex="3"
>
<mat-hint>
<mat-progress-bar
......@@ -158,6 +161,7 @@
name="NewPasswordVerify"
type="password"
placeholder="{{ViewOptions.changePasswordForm.newPasswordVerifyPlaceholder}}"
tabindex="4"
>
<mat-hint>
<strong>
......@@ -183,6 +187,7 @@
(resolved)="SetRecaptchaResponse($event)"
siteKey="{{ViewOptions.recaptcha.siteKey}}"
formControlName="reCaptcha"
tabindex="5"
></re-captcha>
</div>
......@@ -197,6 +202,7 @@
(click)="Submit()"
[disabled]="FormGroup.invalid"
*ngIf="!Loading"
tabindex="6"
>
<span>
{{ViewOptions.changePasswordForm.changePasswordButtonLabel}}
......
......@@ -30,7 +30,7 @@
"HelpTitle": "Help and Support",
"HelpText": "If you are having trouble with this tool, please contact IT Support",
"UsernameLabel": "Username",
"UsernamePlaceholder": "username",
"UsernamePlaceholder": "",
"UsernameHelpblock": "Your organization's email address",
"UsernameDefaultDomainHelperBlock": "Your organization's username",
"CurrentPasswordLabel": "Current Password",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment