diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-03 17:33:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-03 17:33:39 +0200 |
commit | b891f9bc612217b5b6f08a886c7d12eca260b9c8 (patch) | |
tree | 2457cc69161a47a1c07a77aaf0ef2c65beb47dfe /client/src/assets/player/resolution-menu-item.ts | |
parent | 33d7855229f45d73a767566f1dbcb87709211ebf (diff) | |
download | PeerTube-b891f9bc612217b5b6f08a886c7d12eca260b9c8.tar.gz PeerTube-b891f9bc612217b5b6f08a886c7d12eca260b9c8.tar.zst PeerTube-b891f9bc612217b5b6f08a886c7d12eca260b9c8.zip |
Fix watch page video change
Diffstat (limited to 'client/src/assets/player/resolution-menu-item.ts')
-rw-r--r-- | client/src/assets/player/resolution-menu-item.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/resolution-menu-item.ts b/client/src/assets/player/resolution-menu-item.ts index 95e0ed1f8..8ad834c59 100644 --- a/client/src/assets/player/resolution-menu-item.ts +++ b/client/src/assets/player/resolution-menu-item.ts | |||
@@ -13,7 +13,7 @@ class ResolutionMenuItem extends MenuItem { | |||
13 | this.label = options.label | 13 | this.label = options.label |
14 | this.id = options.id | 14 | this.id = options.id |
15 | 15 | ||
16 | player.peertube().on('videoFileUpdate', () => this.update()) | 16 | player.peertube().on('videoFileUpdate', () => this.updateSelection()) |
17 | } | 17 | } |
18 | 18 | ||
19 | handleClick (event) { | 19 | handleClick (event) { |
@@ -22,7 +22,7 @@ class ResolutionMenuItem extends MenuItem { | |||
22 | this.player_.peertube().updateResolution(this.id) | 22 | this.player_.peertube().updateResolution(this.id) |
23 | } | 23 | } |
24 | 24 | ||
25 | update () { | 25 | updateSelection () { |
26 | this.selected(this.player_.peertube().getCurrentResolutionId() === this.id) | 26 | this.selected(this.player_.peertube().getCurrentResolutionId() === this.id) |
27 | } | 27 | } |
28 | } | 28 | } |