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