aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-05-24 12:02:34 +0200
committerChocobozzz <me@florianbigard.com>2019-05-24 12:02:34 +0200
commit624bca15fb7a15a0a788c3d06c41af451bfca28c (patch)
tree581eca6cab1fa5ba7c67d8c654980b9816f459a5 /client
parentea0877b405e9bf10cb488df1460ba74e2cede16e (diff)
downloadPeerTube-624bca15fb7a15a0a788c3d06c41af451bfca28c.tar.gz
PeerTube-624bca15fb7a15a0a788c3d06c41af451bfca28c.tar.zst
PeerTube-624bca15fb7a15a0a788c3d06c41af451bfca28c.zip
Fix duplicates in playlist add component (release branch)
Diffstat (limited to 'client')
-rw-r--r--client/src/app/shared/video-playlist/video-add-to-playlist.component.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts b/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts
index be15f2352..35cad9d14 100644
--- a/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts
+++ b/client/src/app/shared/video-playlist/video-add-to-playlist.component.ts
@@ -57,8 +57,6 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
57 this.buildForm({ 57 this.buildForm({
58 displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME 58 displayName: this.videoPlaylistValidatorsService.VIDEO_PLAYLIST_DISPLAY_NAME
59 }) 59 })
60
61 this.init()
62 } 60 }
63 61
64 ngOnChanges (simpleChanges: SimpleChanges) { 62 ngOnChanges (simpleChanges: SimpleChanges) {
@@ -67,7 +65,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
67 } 65 }
68 } 66 }
69 67
70 init () { 68 reload () {
71 this.resetOptions(true) 69 this.resetOptions(true)
72 70
73 if (this.lazyLoad !== true) this.load() 71 if (this.lazyLoad !== true) this.load()
@@ -76,7 +74,7 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit,
76 unload () { 74 unload () {
77 this.videoPlaylists = [] 75 this.videoPlaylists = []
78 76
79 this.init() 77 this.reload()
80 78
81 this.cd.markForCheck() 79 this.cd.markForCheck()
82 } 80 }