mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
40 lines
1.1 KiB
<input
|
|
autocapitalize="off"
|
|
autocomplete="off"
|
|
matInput
|
|
[formControl]="control"
|
|
[matAutocomplete]="symbolAutocomplete"
|
|
/>
|
|
|
|
<mat-autocomplete
|
|
#symbolAutocomplete="matAutocomplete"
|
|
[displayWith]="displayFn"
|
|
(optionSelected)="onUpdateSymbol($event)"
|
|
>
|
|
<ng-container *ngIf="!isLoading">
|
|
<mat-option
|
|
*ngFor="let lookupItem of filteredLookupItems"
|
|
class="line-height-1"
|
|
[disabled]="lookupItem.dataProviderInfo.isPremium"
|
|
[value]="lookupItem"
|
|
>
|
|
<span class="align-items-center d-flex"
|
|
><b>{{ lookupItem.name }}</b>
|
|
@if (lookupItem.dataProviderInfo.isPremium) {
|
|
<gf-premium-indicator class="ml-1" [enableLink]="false" />
|
|
}
|
|
</span>
|
|
<small class="text-muted"
|
|
>{{ lookupItem.symbol | gfSymbol }} · {{ lookupItem.currency
|
|
}}<ng-container *ngIf="lookupItem.assetSubClass">
|
|
· {{ lookupItem.assetSubClassString }}</ng-container
|
|
></small
|
|
>
|
|
</mat-option>
|
|
</ng-container>
|
|
</mat-autocomplete>
|
|
<mat-spinner
|
|
*ngIf="isLoading"
|
|
class="position-absolute"
|
|
[diameter]="20"
|
|
></mat-spinner>
|
|
|