hide dropdown for readonly mode
This commit is contained in:
parent
6e605e4f6c
commit
eb031cab5f
1 changed files with 4 additions and 6 deletions
|
@ -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'/>
|
||||
|
|
Loading…
Reference in a new issue