diff --git a/src/app/feature/video/list/list.component.html b/src/app/feature/video/list/list.component.html index c4d603a..14c7e0e 100644 --- a/src/app/feature/video/list/list.component.html +++ b/src/app/feature/video/list/list.component.html @@ -11,6 +11,15 @@ (change)="readList()" [(ngModel)]="onlyTagless" /> +
+ +
diff --git a/src/app/feature/video/list/list.component.ts b/src/app/feature/video/list/list.component.ts index 8041a12..3e22cd6 100644 --- a/src/app/feature/video/list/list.component.ts +++ b/src/app/feature/video/list/list.component.ts @@ -12,7 +12,7 @@ import { ColumnDefinition } from 'src/app/shared/components/table/table.componen export class ListComponent { query$ = new Subject(); query: string = ''; - onlyTagless: boolean = false; + onlyTagless: boolean = true; videos: VideoListEntry[] = []; total: number = 0; page: number = 1; @@ -57,9 +57,18 @@ export class ListComponent { this.readList(); } + analyze(): void { + this.requestService.post('analyze/analyze-videos', {}, (response: any) => { + if (response.length > 0) { + alert(response.length + ' videos were updated'); + this.readList(); + } + }); + } + readList(): void { this.requestService.post( - 'video-list/read-list', + 'analyze/read-video-list', { query: this.query, page: this.page,