frontend support for suggestions #264

This commit is contained in:
jonaswinkler
2021-01-29 16:48:51 +01:00
parent ddcc0883eb
commit d22d9a023c
9 changed files with 102 additions and 43 deletions

View File

@@ -22,4 +22,12 @@
</div>
</div>
<small *ngIf="hint" class="form-text text-muted">{{hint}}</small>
<small *ngIf="getSuggestions().length > 0">
<span i18n>Suggested:</span>&nbsp;
<ng-container *ngFor="let s of getSuggestions()">
<a (click)="value = s.id; onChange(value)" [routerLink]="">{{s.name}}</a>&nbsp;
</ng-container>
</small>
</div>