diff options
Diffstat (limited to 'client/src/assets/player/videojs-components')
-rw-r--r-- | client/src/assets/player/videojs-components/settings-menu-button.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-button.ts b/client/src/assets/player/videojs-components/settings-menu-button.ts index 3e8b5fc94..b700f4be6 100644 --- a/client/src/assets/player/videojs-components/settings-menu-button.ts +++ b/client/src/assets/player/videojs-components/settings-menu-button.ts | |||
@@ -122,6 +122,8 @@ class SettingsButton extends Button { | |||
122 | } | 122 | } |
123 | 123 | ||
124 | showDialog () { | 124 | showDialog () { |
125 | this.player_.peertube().onMenuOpen() | ||
126 | |||
125 | this.menu.el_.style.opacity = '1' | 127 | this.menu.el_.style.opacity = '1' |
126 | this.dialog.show() | 128 | this.dialog.show() |
127 | 129 | ||
@@ -129,6 +131,8 @@ class SettingsButton extends Button { | |||
129 | } | 131 | } |
130 | 132 | ||
131 | hideDialog () { | 133 | hideDialog () { |
134 | this.player_.peertube().onMenuClosed() | ||
135 | |||
132 | this.dialog.hide() | 136 | this.dialog.hide() |
133 | this.setDialogSize(this.getComponentSize(this.menu)) | 137 | this.setDialogSize(this.getComponentSize(this.menu)) |
134 | this.menu.el_.style.opacity = '1' | 138 | this.menu.el_.style.opacity = '1' |