X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-custom-markup%2Fpeertube-custom-tags%2Fplaylist-miniature-markup.component.ts;h=07fa6fd2d29cb5fe2c9d4bf93be25c994b96e70a;hb=a2fb5fb8b1007e3ce82e707917f5d9a37374e99b;hp=97d31c4a78fbcb9558663175f17cc161092f6617;hpb=3da38d6e9f8d600476be276666ac7223aa5f172c;p=github%2FChocobozzz%2FPeerTube.git 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 97d31c4a7..07fa6fd2d 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 @@ -41,10 +41,10 @@ export class PlaylistMiniatureMarkupComponent implements CustomMarkupComponent, ngOnInit () { this.findInBulkService.getPlaylist(this.uuid) .pipe(finalize(() => this.loaded.emit(true))) - .subscribe( - playlist => this.playlist = playlist, + .subscribe({ + next: playlist => this.playlist = playlist, - err => this.notifier.error('Error in playlist miniature component: ' + err.message) - ) + error: err => this.notifier.error($localize`Error in playlist miniature component: ${err.message}`) + }) } }