import { from } from 'rxjs'
import { finalize, map, switchMap, tap } from 'rxjs/operators'
-import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
import { MarkdownService, Notifier, UserService } from '@app/core'
import { FindInBulkService } from '@app/shared/shared-search'
import { VideoSortField } from '@shared/models'
private findInBulk: FindInBulkService,
private videoService: VideoService,
private userService: UserService,
- private notifier: Notifier
+ private notifier: Notifier,
+ private cd: ChangeDetectorRef
) { }
ngOnInit () {
next: ({ total, data }) => {
this.totalVideos = total
this.video = data[0]
+
+ this.cd.markForCheck()
},
error: err => this.notifier.error($localize`Error in channel miniature component: ${err.message}`)