mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Made genre exclusion a drop down
This commit is contained in:
parent
c217235d56
commit
e899428feb
1 changed files with 15 additions and 21 deletions
|
@ -28,47 +28,41 @@
|
|||
|
||||
<mat-chip-list #chipList>
|
||||
<mat-chip *ngFor="let key of excludedKeywords" [selectable]="false" [removable]="true"
|
||||
(removed)="remove(key)">
|
||||
(removed)="remove(key, 'keyword')">
|
||||
{{key.name}}
|
||||
<i matChipRemove class="fas fa-times fa-lg"></i>
|
||||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
|
||||
<mat-form-field class="example-full-width">
|
||||
<input type="text" placeholder="Excluded Genres for Movie Suggestions" matInput
|
||||
formControlName="input" [matAutocomplete]="auto"
|
||||
matTooltip="Prevent movies with certain genres from being suggested. May require a restart to take effect.">
|
||||
<mat-autocomplete (optionSelected)="optionSelected($event.option.value)" autoActiveFirstOption
|
||||
#auto="matAutocomplete">
|
||||
<mat-option *ngFor="let option of filteredMovieGenres" [value]="option">
|
||||
{{option.name}}
|
||||
<mat-form-field appearance="outline" >
|
||||
<mat-label>Movie Genres</mat-label>
|
||||
<mat-select formControlName="excludedMovieGenres" multiple>
|
||||
<mat-option *ngFor="let genre of filteredMovieGenres" [value]="genre.id">
|
||||
{{genre.name}}
|
||||
</mat-option>
|
||||
</mat-autocomplete>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-chip-list #chipList>
|
||||
<mat-chip *ngFor="let key of excludedMovieGenres" [selectable]="false" [removable]="true"
|
||||
(removed)="remove(key)">
|
||||
(removed)="remove(key, 'movieGenre')">
|
||||
{{key.name}}
|
||||
<i matChipRemove class="fas fa-times fa-lg"></i>
|
||||
</mat-chip>
|
||||
</mat-chip-list>
|
||||
|
||||
<mat-form-field class="example-full-width">
|
||||
<input type="text" placeholder="Excluded Genres for TV Suggestions" matInput
|
||||
formControlName="input" [matAutocomplete]="auto"
|
||||
matTooltip="Prevent TV Shows with certain genres from being suggested. May require a restart to take effect.">
|
||||
<mat-autocomplete (optionSelected)="optionSelected($event.option.value)" autoActiveFirstOption
|
||||
#auto="matAutocomplete">
|
||||
<mat-option *ngFor="let option of filteredTvGenres" [value]="option">
|
||||
{{option.name}}
|
||||
<mat-form-field appearance="outline" >
|
||||
<mat-label>Tv Genres</mat-label>
|
||||
<mat-select formControlName="excludedTvGenres" multiple>
|
||||
<mat-option *ngFor="let genre of filteredTvGenres" [value]="genre.id">
|
||||
{{genre.name}}
|
||||
</mat-option>
|
||||
</mat-autocomplete>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-chip-list #chipList>
|
||||
<mat-chip *ngFor="let key of excludedTvGenres" [selectable]="false" [removable]="true"
|
||||
(removed)="remove(key)">
|
||||
(removed)="remove(key, 'tvGenre')">
|
||||
{{key.name}}
|
||||
<i matChipRemove class="fas fa-times fa-lg"></i>
|
||||
</mat-chip>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue