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

View File

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