aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts')
-rw-r--r--client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
index 1e7860750..df7cc95a7 100644
--- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
+++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts
@@ -1,6 +1,6 @@
1import { from } from 'rxjs' 1import { from } from 'rxjs'
2import { finalize, map, switchMap, tap } from 'rxjs/operators' 2import { finalize, map, switchMap, tap } from 'rxjs/operators'
3import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core' 3import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
4import { MarkdownService, Notifier, UserService } from '@app/core' 4import { MarkdownService, Notifier, UserService } from '@app/core'
5import { FindInBulkService } from '@app/shared/shared-search' 5import { FindInBulkService } from '@app/shared/shared-search'
6import { VideoSortField } from '@shared/models' 6import { VideoSortField } from '@shared/models'
@@ -34,7 +34,8 @@ export class ChannelMiniatureMarkupComponent implements CustomMarkupComponent, O
34 private findInBulk: FindInBulkService, 34 private findInBulk: FindInBulkService,
35 private videoService: VideoService, 35 private videoService: VideoService,
36 private userService: UserService, 36 private userService: UserService,
37 private notifier: Notifier 37 private notifier: Notifier,
38 private cd: ChangeDetectorRef
38 ) { } 39 ) { }
39 40
40 ngOnInit () { 41 ngOnInit () {
@@ -57,6 +58,8 @@ export class ChannelMiniatureMarkupComponent implements CustomMarkupComponent, O
57 next: ({ total, data }) => { 58 next: ({ total, data }) => {
58 this.totalVideos = total 59 this.totalVideos = total
59 this.video = data[0] 60 this.video = data[0]
61
62 this.cd.markForCheck()
60 }, 63 },
61 64
62 error: err => this.notifier.error($localize`Error in channel miniature component: ${err.message}`) 65 error: err => this.notifier.error($localize`Error in channel miniature component: ${err.message}`)