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');
|
menuItems.push(
|
||||||
if (tools && (props.hasWBAccess || props.amIPresenter)){
|
{
|
||||||
menuItems.push(
|
key: 'list-item-toolvisibility',
|
||||||
{
|
dataTest: 'toolVisibility',
|
||||||
key: 'list-item-toolvisibility',
|
label: formattedVisibilityLabel(isToolbarVisible),
|
||||||
dataTest: 'toolVisibility',
|
icon: isToolbarVisible ? 'close' : 'pen_tool',
|
||||||
label: formattedVisibilityLabel(isToolbarVisible),
|
onClick: () => {
|
||||||
icon: isToolbarVisible ? 'close' : 'pen_tool',
|
setIsToolbarVisible(!isToolbarVisible);
|
||||||
onClick: () => {
|
|
||||||
setIsToolbarVisible(!isToolbarVisible);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
);
|
},
|
||||||
}
|
);
|
||||||
|
|
||||||
if (props.amIPresenter) {
|
if (props.amIPresenter) {
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user