X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fvideo%2Fvideos-selection.component.ts;h=0644200568c195a4767fd7d1132dde462738aea1;hb=e612209767ebe1deb0af7688c96b7f979bb52b44;hp=d69f7b70e3208c977417a458fa27a59bf4d75c69;hpb=34c7f429e411fb911dfa56a816b638fd665717a4;p=oweals%2Fpeertube.git diff --git a/client/src/app/shared/video/videos-selection.component.ts b/client/src/app/shared/video/videos-selection.component.ts index d69f7b70e..064420056 100644 --- a/client/src/app/shared/video/videos-selection.component.ts +++ b/client/src/app/shared/video/videos-selection.component.ts @@ -21,6 +21,7 @@ import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template import { VideoSortField } from '@app/shared/video/sort-field.type' import { ComponentPagination } from '@app/shared/rest/component-pagination.model' import { I18n } from '@ngx-translate/i18n-polyfill' +import { ResultList } from '@shared/models' export type SelectionType = { [ id: number ]: boolean } @@ -33,8 +34,8 @@ export class VideosSelectionComponent extends AbstractVideoList implements OnIni @Input() pagination: ComponentPagination @Input() titlePage: string @Input() miniatureDisplayOptions: MiniatureDisplayOptions - @Input() getVideosObservableFunction: (page: number, sort?: VideoSortField) => Observable<{ videos: Video[], totalVideos: number }> - @ContentChildren(PeerTubeTemplateDirective) templates: QueryList + @Input() getVideosObservableFunction: (page: number, sort?: VideoSortField) => Observable> + @ContentChildren(PeerTubeTemplateDirective) templates: QueryList> @Output() selectionChange = new EventEmitter() @Output() videosModelChange = new EventEmitter()