Skip to content

Commit

Permalink
add missing error message for keytag
Browse files Browse the repository at this point in the history
  • Loading branch information
hannaeko committed Feb 26, 2024
1 parent ff866e1 commit 2ca510c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/form/form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
inputmode="numeric"
pattern="\d*"
id="ds_info-{{i}}-keytag-input"
[attr.aria-describedby]="'ds_info-' + i + '-keytag-error-required ds_info-' + i + '-keytag-error-server'"
[attr.aria-describedby]="'ds_info-' + i + '-keytag-error-required ds_info-' + i + '-keytag-error-pattern ds_info-' + i + '-keytag-error-server'"
formControlName="keytag"
class="form-control"
i18n-title="form label"
Expand All @@ -154,6 +154,9 @@
<div id="ds_info-{{i}}-keytag-error-required" class="invalid-feedback" *ngIf="ds_info.controls.keytag.errors?.required" >
<ng-container i18n="form error">Keytag required</ng-container>
</div>
<div id="ds_info-{{i}}-keytag-error-pattern" class="invalid-feedback" *ngIf="ds_info.controls.keytag.errors?.pattern" >
<ng-container i18n="form error">The keytag must be a positive integer between 0 and 65535</ng-container>
</div>
</div>

<label id="ds_info-{{i}}-algorithm-label" for="ds_info-{{i}}-algorithm-input" i18n="form label">Algorithm</label>
Expand Down

0 comments on commit 2ca510c

Please sign in to comment.