aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts')
-rw-r--r--client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts
index 70e88ea51..7c2e7db6a 100644
--- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts
+++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts
@@ -1,5 +1,5 @@
1import { finalize } from 'rxjs/operators' 1import { finalize } from 'rxjs/operators'
2import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core' 2import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
3import { AuthService, Notifier } from '@app/core' 3import { AuthService, Notifier } from '@app/core'
4import { VideoSortField } from '@shared/models' 4import { VideoSortField } from '@shared/models'
5import { Video, VideoService } from '../../shared-main' 5import { Video, VideoService } from '../../shared-main'
@@ -46,7 +46,8 @@ export class VideosListMarkupComponent implements CustomMarkupComponent, OnInit
46 constructor ( 46 constructor (
47 private auth: AuthService, 47 private auth: AuthService,
48 private videoService: VideoService, 48 private videoService: VideoService,
49 private notifier: Notifier 49 private notifier: Notifier,
50 private cd: ChangeDetectorRef
50 ) { } 51 ) { }
51 52
52 getUser () { 53 getUser () {
@@ -73,7 +74,10 @@ export class VideosListMarkupComponent implements CustomMarkupComponent, OnInit
73 return this.getVideosObservable() 74 return this.getVideosObservable()
74 .pipe(finalize(() => this.loaded.emit(true))) 75 .pipe(finalize(() => this.loaded.emit(true)))
75 .subscribe({ 76 .subscribe({
76 next: ({ data }) => this.videos = data, 77 next: ({ data }) => {
78 this.videos = data
79 this.cd.markForCheck()
80 },
77 81
78 error: err => this.notifier.error($localize`Error in videos list component: ${err.message}`) 82 error: err => this.notifier.error($localize`Error in videos list component: ${err.message}`)
79 }) 83 })