diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/shared/video-playlist/video-add-to-playlist.component.ts | 8 |
1 files changed, 4 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 35cad9d14..c6cff03a4 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 | |||
@@ -61,20 +61,20 @@ export class VideoAddToPlaylistComponent extends FormReactive implements OnInit, | |||
61 | 61 | ||
62 | ngOnChanges (simpleChanges: SimpleChanges) { | 62 | ngOnChanges (simpleChanges: SimpleChanges) { |
63 | if (simpleChanges['video']) { | 63 | if (simpleChanges['video']) { |
64 | this.unload() | 64 | this.reload() |
65 | } | 65 | } |
66 | } | 66 | } |
67 | 67 | ||
68 | reload () { | 68 | init () { |
69 | this.resetOptions(true) | 69 | this.resetOptions(true) |
70 | 70 | ||
71 | if (this.lazyLoad !== true) this.load() | 71 | if (this.lazyLoad !== true) this.load() |
72 | } | 72 | } |
73 | 73 | ||
74 | unload () { | 74 | reload () { |
75 | this.videoPlaylists = [] | 75 | this.videoPlaylists = [] |
76 | 76 | ||
77 | this.reload() | 77 | this.init() |
78 | 78 | ||
79 | this.cd.markForCheck() | 79 | this.cd.markForCheck() |
80 | } | 80 | } |