diff options
Diffstat (limited to 'client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts')
-rw-r--r-- | client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts index ab52e7e37..d2cf1326e 100644 --- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts +++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { finalize } from 'rxjs/operators' | 1 | import { finalize } from 'rxjs/operators' |
2 | import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core' | 2 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } from '@angular/core' |
3 | import { Notifier } from '@app/core' | 3 | import { Notifier } from '@app/core' |
4 | import { FindInBulkService } from '@app/shared/shared-search' | 4 | import { FindInBulkService } from '@app/shared/shared-search' |
5 | import { MiniatureDisplayOptions } from '../../shared-video-miniature' | 5 | import { MiniatureDisplayOptions } from '../../shared-video-miniature' |
@@ -36,14 +36,18 @@ export class PlaylistMiniatureMarkupComponent implements CustomMarkupComponent, | |||
36 | 36 | ||
37 | constructor ( | 37 | constructor ( |
38 | private findInBulkService: FindInBulkService, | 38 | private findInBulkService: FindInBulkService, |
39 | private notifier: Notifier | 39 | private notifier: Notifier, |
40 | private cd: ChangeDetectorRef | ||
40 | ) { } | 41 | ) { } |
41 | 42 | ||
42 | ngOnInit () { | 43 | ngOnInit () { |
43 | this.findInBulkService.getPlaylist(this.uuid) | 44 | this.findInBulkService.getPlaylist(this.uuid) |
44 | .pipe(finalize(() => this.loaded.emit(true))) | 45 | .pipe(finalize(() => this.loaded.emit(true))) |
45 | .subscribe({ | 46 | .subscribe({ |
46 | next: playlist => this.playlist = playlist, | 47 | next: playlist => { |
48 | this.playlist = playlist | ||
49 | this.cd.markForCheck() | ||
50 | }, | ||
47 | 51 | ||
48 | error: err => this.notifier.error($localize`Error in playlist miniature component: ${err.message}`) | 52 | error: err => this.notifier.error($localize`Error in playlist miniature component: ${err.message}`) |
49 | }) | 53 | }) |