Fix duplicates in playlist add component (release branch)

pull/1935/head
Chocobozzz 2019-05-24 12:02:34 +02:00
parent ea0877b405
commit 624bca15fb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 4 deletions

View File

@ -57,8 +57,6 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
this.buildForm({ this.buildForm({
displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME
}) })
this.init()
} }
ngOnChanges (simpleChanges: SimpleChanges) { ngOnChanges (simpleChanges: SimpleChanges) {
@ -67,7 +65,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
} }
} }
init () { reload () {
this.resetOptions(true) this.resetOptions(true)
if (this.lazyLoad !== true) this.load() if (this.lazyLoad !== true) this.load()
@ -76,7 +74,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
unload () { unload () {
this.videoPlaylists = [] this.videoPlaylists = []
this.init() this.reload()
this.cd.markForCheck() this.cd.markForCheck()
} }