1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-10 16:05:35 +02:00

fix: only show edit button if user can edit

This commit is contained in:
mikejeffers 2023-06-14 20:37:19 -04:00
parent fcbe0d61d4
commit be50ff97d9

View file

@ -63,12 +63,14 @@ const Header = React.memo(
)}
>
{project.name}
<Button
className={classNames(styles.actionsButton, styles.target)}
onClick={handleProjectSettingsClick}
>
<Icon fitted name="pencil" size="small" />
</Button>
{canEditProject && (
<Button
className={classNames(styles.actionsButton, styles.target)}
onClick={handleProjectSettingsClick}
>
<Icon fitted name="pencil" size="small" />
</Button>
)}
</Menu.Item>
</Menu.Menu>
)}