]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video-playlist/video-add-to-playlist.component.ts
Add params to share modal
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video-playlist / video-add-to-playlist.component.ts
index 35cad9d14f857492f470ddbf3a87d6f5386341b4..c6cff03a4b9a82125e31eea7c26f754bff7c5561 100644 (file)
@@ -61,20 +61,20 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
 
   ngOnChanges (simpleChanges: SimpleChanges) {
     if (simpleChanges['video']) {
-      this.unload()
+      this.reload()
     }
   }
 
-  reload () {
+  init () {
     this.resetOptions(true)
 
     if (this.lazyLoad !== true) this.load()
   }
 
-  unload () {
+  reload () {
     this.videoPlaylists = []
 
-    this.reload()
+    this.init()
 
     this.cd.markForCheck()
   }