From: Chocobozzz Date: Fri, 24 May 2019 10:02:34 +0000 (+0200) Subject: Fix duplicates in playlist add component (release branch) X-Git-Tag: v1.3.0~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=624bca15fb7a15a0a788c3d06c41af451bfca28c;p=oweals%2Fpeertube.git Fix duplicates in playlist add component (release branch) --- diff --git a/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts b/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts index be15f2352..35cad9d14 100644 --- a/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts +++ b/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts @@ -57,8 +57,6 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, this.buildForm({ displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME }) - - this.init() } ngOnChanges (simpleChanges: SimpleChanges) { @@ -67,7 +65,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, } } - init () { + reload () { this.resetOptions(true) if (this.lazyLoad !== true) this.load() @@ -76,7 +74,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, unload () { this.videoPlaylists = [] - this.init() + this.reload() this.cd.markForCheck() }