mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
wip
This commit is contained in:
parent
7f9652ba4e
commit
5941e962ec
2 changed files with 29 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
Excluded Keyword IDs for Movie Suggestions
|
Excluded Keyword IDs for Movie Suggestions
|
||||||
</label>
|
</label>
|
||||||
<form [formGroup]='tagForm'>
|
<form [formGroup]='tagForm'>
|
||||||
<mat-form-field class="example-chip-list">
|
<!-- <mat-form-field class="example-chip-list">
|
||||||
<mat-chip-list #chipList>
|
<mat-chip-list #chipList>
|
||||||
<mat-chip *ngFor="let fruit of excludedKeywords" [selectable]="false"
|
<mat-chip *ngFor="let fruit of excludedKeywords" [selectable]="false"
|
||||||
[removable]="true" (removed)="remove(fruit)">
|
[removable]="true" (removed)="remove(fruit)">
|
||||||
|
@ -35,7 +35,25 @@
|
||||||
{{fruit.name}}
|
{{fruit.name}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-autocomplete>
|
</mat-autocomplete>
|
||||||
|
</mat-form-field> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<mat-form-field class="example-full-width">
|
||||||
|
<input type="text"
|
||||||
|
placeholder="Pick one"
|
||||||
|
aria-label="Number"
|
||||||
|
matInput
|
||||||
|
formControlName="input"
|
||||||
|
[matAutocomplete]="auto">
|
||||||
|
<mat-autocomplete (optionSelected)="optionSelected($event.option.value)" autoActiveFirstOption #auto="matAutocomplete">
|
||||||
|
<mat-option *ngFor="let option of filteredTags" [value]="option">
|
||||||
|
{{option.name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-autocomplete>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
<!-- <tag-input #input
|
<!-- <tag-input #input
|
||||||
[(ngModel)]="excludedKeywords"
|
[(ngModel)]="excludedKeywords"
|
||||||
|
|
|
@ -137,4 +137,13 @@ export class TheMovieDbComponent implements OnInit {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async optionSelected(item: IMovieDbKeyword) {
|
||||||
|
|
||||||
|
if ((item.name || '').trim()) {
|
||||||
|
this.excludedKeywords.push({ id: item.id, name: item.name, initial: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
this.tagForm.controls.input.setValue(null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue