From 0487eec4cabf43db999a8c6cee6bfe64f92e9197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 8 Feb 2024 09:29:10 -0300 Subject: [PATCH] fix hide toolbar only appearing for presenter --- .../presentation-menu/component.jsx | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/presentation/presentation-menu/component.jsx b/bigbluebutton-html5/imports/ui/components/presentation/presentation-menu/component.jsx index 7b1961a4bb..9fade0a499 100755 --- a/bigbluebutton-html5/imports/ui/components/presentation/presentation-menu/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/presentation/presentation-menu/component.jsx @@ -357,21 +357,18 @@ const PresentationMenu = (props) => { }, ); } - - const tools = document.querySelector('.tlui-toolbar, .tlui-style-panel__wrapper, .tlui-menu-zone'); - if (tools && (props.hasWBAccess || props.amIPresenter)){ - menuItems.push( - { - key: 'list-item-toolvisibility', - dataTest: 'toolVisibility', - label: formattedVisibilityLabel(isToolbarVisible), - icon: isToolbarVisible ? 'close' : 'pen_tool', - onClick: () => { - setIsToolbarVisible(!isToolbarVisible); - }, + + menuItems.push( + { + key: 'list-item-toolvisibility', + dataTest: 'toolVisibility', + label: formattedVisibilityLabel(isToolbarVisible), + icon: isToolbarVisible ? 'close' : 'pen_tool', + onClick: () => { + setIsToolbarVisible(!isToolbarVisible); }, - ); - } + }, + ); if (props.amIPresenter) { menuItems.push({