fix hide toolbar only appearing for presenter
This commit is contained in:
parent
c6f82eed1e
commit
0487eec4ca
@ -358,20 +358,17 @@ 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({
|
||||
|
Loading…
Reference in New Issue
Block a user