unload -> reload in playlist add component
This commit is contained in:
parent
b6e342d5c6
commit
8d51015bd0
|
@ -61,7 +61,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
|
||||||
|
|
||||||
ngOnChanges (simpleChanges: SimpleChanges) {
|
ngOnChanges (simpleChanges: SimpleChanges) {
|
||||||
if (simpleChanges['video']) {
|
if (simpleChanges['video']) {
|
||||||
this.unload()
|
this.reload()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
|
||||||
if (this.lazyLoad !== true) this.load()
|
if (this.lazyLoad !== true) this.load()
|
||||||
}
|
}
|
||||||
|
|
||||||
unload () {
|
reload () {
|
||||||
this.videoPlaylists = []
|
this.videoPlaylists = []
|
||||||
|
|
||||||
this.init()
|
this.init()
|
||||||
|
|
Loading…
Reference in New Issue