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}
|
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'/>
|
||||||
|
|
Loading…
Reference in a new issue