hide dropdown for readonly mode

This commit is contained in:
redhoyasa 2022-12-09 16:41:36 +07:00
parent 6e605e4f6c
commit eb031cab5f

View file

@ -149,11 +149,8 @@ const ViewHeader = (props: Props) => {
spellCheck={true}
autoExpand={false}
/>
<div>
<MenuWrapper
disabled={props.readonly}
label={intl.formatMessage({id: 'ViewHeader.view-menu', defaultMessage: 'View menu'})}
>
{!props.readonly && (<div>
<MenuWrapper label={intl.formatMessage({id: 'ViewHeader.view-menu', defaultMessage: 'View menu'})}>
<IconButton icon={<DropdownIcon/>}/>
<ViewMenu
board={board}
@ -164,7 +161,8 @@ const ViewHeader = (props: Props) => {
/>
</MenuWrapper>
{showAddViewTourStep && <AddViewTourStep/>}
</div>
</div>)}
</div>
<div className='octo-spacer'/>