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}
|
autoExpand={false}
|
||||||
/>
|
/>
|
||||||
<div>
|
<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/>}/>
|
<IconButton icon={<DropdownIcon/>}/>
|
||||||
<ViewMenu
|
<ViewMenu
|
||||||
board={board}
|
board={board}
|
||||||
|
@ -279,7 +279,6 @@ const ViewMenu = (props: Props) => {
|
|||||||
name={view.title}
|
name={view.title}
|
||||||
icon={iconForViewType(view.fields.viewType)}
|
icon={iconForViewType(view.fields.viewType)}
|
||||||
onClick={handleViewClick}
|
onClick={handleViewClick}
|
||||||
disabled={props.readonly}
|
|
||||||
/>))}
|
/>))}
|
||||||
</div>
|
</div>
|
||||||
<BoardPermissionGate permissions={[Permission.ManageBoardProperties]}>
|
<BoardPermissionGate permissions={[Permission.ManageBoardProperties]}>
|
||||||
|
Loading…
Reference in New Issue
Block a user