mirror of https://github.com/Ombi-app/Ombi
parent
b38cfbc091
commit
ce33a4212d
@ -1,15 +1,14 @@
|
|||||||
<mat-form-field class="quater-width">
|
<mat-form-field class="quater-width">
|
||||||
<input [(ngModel)]="searchText" (keyup)="search($event)" matInput [matAutocomplete]="auto">
|
<input [(ngModel)]="searchText" (keyup)="search($event)" matInput [matAutocomplete]="auto">
|
||||||
<mat-autocomplete #auto="matAutocomplete">
|
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="selected($event)">
|
||||||
<mat-option *ngFor="let option of searchResult" [value]="option">
|
<mat-option *ngFor="let result of searchResult" [value]="result">
|
||||||
<img src="https://image.tmdb.org/t/p/w92/{{option.poster_path}}" class="autocomplete-img" aria-hidden/>
|
<img src="https://image.tmdb.org/t/p/w92/{{result.poster_path}}" class="autocomplete-img" aria-hidden/>
|
||||||
<span *ngIf="option.media_type == 'tv'">
|
<span *ngIf="result.media_type == 'tv'">
|
||||||
{{option.name}}
|
{{result.name}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="option.media_type == 'movie'">
|
<span *ngIf="result.media_type == 'movie'">
|
||||||
{{option.title}}
|
{{result.title}}
|
||||||
</span>
|
</span>
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-autocomplete>
|
</mat-autocomplete>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</mat-toolbar>
|
|
Loading…
Reference in new issue