mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-21 13:38:56 +02:00
disable menu dropdown for readonly mode (#2932)
This commit is contained in:
parent
820cae6725
commit
1da0abd718
@ -150,7 +150,10 @@ const ViewHeader = (props: Props) => {
|
||||
autoExpand={false}
|
||||
/>
|
||||
<div>
|
||||
<MenuWrapper label={intl.formatMessage({id: 'ViewHeader.view-menu', defaultMessage: 'View menu'})}>
|
||||
<MenuWrapper
|
||||
disabled={props.readonly}
|
||||
label={intl.formatMessage({id: 'ViewHeader.view-menu', defaultMessage: 'View menu'})}
|
||||
>
|
||||
<IconButton icon={<DropdownIcon/>}/>
|
||||
<ViewMenu
|
||||
board={board}
|
||||
|
@ -279,7 +279,6 @@ const ViewMenu = (props: Props) => {
|
||||
name={view.title}
|
||||
icon={iconForViewType(view.fields.viewType)}
|
||||
onClick={handleViewClick}
|
||||
disabled={props.readonly}
|
||||
/>))}
|
||||
</div>
|
||||
<BoardPermissionGate permissions={[Permission.ManageBoardProperties]}>
|
||||
|
Loading…
Reference in New Issue
Block a user