mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
fix: Disable quick timer actions for viewers
This commit is contained in:
parent
ef76b887af
commit
a17c03ff2f
2 changed files with 14 additions and 12 deletions
|
@ -125,7 +125,7 @@ const Card = React.memo(
|
||||||
startedAt={timer.startedAt}
|
startedAt={timer.startedAt}
|
||||||
total={timer.total}
|
total={timer.total}
|
||||||
size="tiny"
|
size="tiny"
|
||||||
onClick={handleToggleTimerClick}
|
onClick={canEdit ? handleToggleTimerClick : undefined}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -298,6 +298,7 @@ const CardModal = React.memo(
|
||||||
<Timer startedAt={timer.startedAt} total={timer.total} />
|
<Timer startedAt={timer.startedAt} total={timer.total} />
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
{canEdit && (
|
||||||
<button
|
<button
|
||||||
onClick={handleToggleTimerClick}
|
onClick={handleToggleTimerClick}
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -309,6 +310,7 @@ const CardModal = React.memo(
|
||||||
className={styles.addAttachment}
|
className={styles.addAttachment}
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue