Added category info to video info dialog (if present)

- you can now search by category on the home page
This commit is contained in:
Isaac Abadi
2020-12-19 14:33:19 -05:00
parent 7e06d30205
commit 4cbfab20e0
2 changed files with 5 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ export class RecentVideosComponent implements OnInit {
private filterFiles(value: string) {
const filterValue = value.toLowerCase();
this.filtered_files = this.files.filter(option => option.id.toLowerCase().includes(filterValue));
this.filtered_files = this.files.filter(option => option.id.toLowerCase().includes(filterValue) || option.category?.toLowerCase().includes(filterValue));
this.pageChangeEvent({pageSize: this.pageSize, pageIndex: this.paginator.pageIndex});
}