mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 13:48:11 +08:00
Fix icon logic on panel locked layer
This commit is contained in:
@@ -430,8 +430,8 @@
|
|||||||
classes={{ inactive: !listing.entry.parentsUnlocked }}
|
classes={{ inactive: !listing.entry.parentsUnlocked }}
|
||||||
action={(e) => (toggleLayerLock(listing.entry.id), e?.stopPropagation())}
|
action={(e) => (toggleLayerLock(listing.entry.id), e?.stopPropagation())}
|
||||||
size={24}
|
size={24}
|
||||||
icon={listing.entry.parentsUnlocked ? "PadlockLocked" : "PadlockUnlocked"}
|
icon={(listing.entry.parentId && listing.entry.parentsUnlocked) || !listing.entry.unlocked ? "PadlockLocked" : "PadlockUnlocked"}
|
||||||
hoverIcon={listing.entry.parentsUnlocked ? "PadlockUnlocked" : "PadlockLocked"}
|
hoverIcon={(listing.entry.parentId && listing.entry.parentsUnlocked) || !listing.entry.unlocked ? "PadlockUnlocked" : "PadlockLocked"}
|
||||||
tooltip={listing.entry.parentsUnlocked ? "Unlock" : "Lock"}
|
tooltip={listing.entry.parentsUnlocked ? "Unlock" : "Lock"}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user