🐛 fix: disable draggable hunk if it is locked or readonly

This commit is contained in:
Kiril Videlov 2024-01-23 10:21:13 +01:00 committed by Kiril Videlov
parent ed62435ecd
commit 1b149af40c

View File

@ -156,7 +156,7 @@
role="cell"
use:draggable={{
...draggableHunk(branchId, section.hunk),
disabled: readonly
disabled: readonly || section.hunk.locked
}}
on:dblclick
class="hunk"