diff options
author | Chocobozzz <me@florianbigard.com> | 2019-05-17 14:34:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-05-17 14:34:21 +0200 |
commit | 1c8ddbfaa03e241c782201343d424748efc191c1 (patch) | |
tree | 7e1f4b4108b3c500aa5e353e1f0ec903994d633c /client/src/app/shared/video | |
parent | 67c687236f84dd288f2df3201c8ab77b93682b67 (diff) | |
download | PeerTube-1c8ddbfaa03e241c782201343d424748efc191c1.tar.gz PeerTube-1c8ddbfaa03e241c782201343d424748efc191c1.tar.zst PeerTube-1c8ddbfaa03e241c782201343d424748efc191c1.zip |
Reset playlist add component when video changes
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/video-actions-dropdown.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/shared/video/video-actions-dropdown.component.ts b/client/src/app/shared/video/video-actions-dropdown.component.ts index ee2f44f9e..df799499e 100644 --- a/client/src/app/shared/video/video-actions-dropdown.component.ts +++ b/client/src/app/shared/video/video-actions-dropdown.component.ts | |||
@@ -79,6 +79,11 @@ export class VideoActionsDropdownComponent implements OnChanges { | |||
79 | } | 79 | } |
80 | 80 | ||
81 | ngOnChanges () { | 81 | ngOnChanges () { |
82 | if (this.loaded) { | ||
83 | this.loaded = false | ||
84 | this.playlistAdd.unload() | ||
85 | } | ||
86 | |||
82 | this.buildActions() | 87 | this.buildActions() |
83 | } | 88 | } |
84 | 89 | ||