Fix duplicates in playlist add component (release branch)
This commit is contained in:
parent
ea0877b405
commit
624bca15fb
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue