feat(date.component): adding suggestions to frontend

This commit is contained in:
Matthias Eck
2022-08-06 13:02:08 +02:00
parent 7912e9bfe7
commit 1cc1ee36c6
4 changed files with 49 additions and 4 deletions

View File

@@ -12,4 +12,10 @@
</div>
<div class="invalid-feedback" i18n>Invalid date.</div>
<small *ngIf="hint" class="form-text text-muted">{{hint}}</small>
<small *ngIf="getSuggestions().length > 0">
<span i18n>Suggestions:</span>&nbsp;
<ng-container *ngFor="let s of getSuggestions()">
<a (click)="onSuggestionClick(s)" [routerLink]="[]">{{s}}</a>&nbsp;
</ng-container>
</small>
</div>