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:
parent
fcbe0d61d4
commit
be50ff97d9
1 changed files with 8 additions and 6 deletions
|
@ -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>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue