Fix method names

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

View File

@ -61,20 +61,20 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
ngOnChanges (simpleChanges: SimpleChanges) { ngOnChanges (simpleChanges: SimpleChanges) {
if (simpleChanges['video']) { if (simpleChanges['video']) {
this.unload() this.reload()
} }
} }
reload () { init () {
this.resetOptions(true) this.resetOptions(true)
if (this.lazyLoad !== true) this.load() if (this.lazyLoad !== true) this.load()
} }
unload () { reload () {
this.videoPlaylists = [] this.videoPlaylists = []
this.reload() this.init()
this.cd.markForCheck() this.cd.markForCheck()
} }