1
0
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:
redhoyasa 2022-11-07 22:04:56 +07:00
parent 820cae6725
commit 1da0abd718
2 changed files with 4 additions and 2 deletions

View File

@ -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}

View File

@ -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]}>