tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
fix selection logic on readonly leaflets
awarm.space
8 months ago
8a411f0b
93f0b2fa
+2
1 changed file
expand all
collapse all
unified
split
components
Blocks
index.tsx
+2
components/Blocks/index.tsx
···
27
27
: focusedElement?.parent;
28
28
return focusedPageID === props.entityID;
29
29
});
30
30
+
let { permissions } = useEntitySetContext();
30
31
let entity_set = useEntitySetContext();
31
32
let blocks = useBlocks(props.entityID);
32
33
let foldedBlocks = useUIState((s) => s.foldedBlocks);
···
95
96
<div
96
97
className={`blocks w-full flex flex-col outline-none h-fit min-h-full`}
97
98
onClick={async (e) => {
99
99
+
if (!permissions.write) return;
98
100
if (useUIState.getState().selectedBlocks.length > 1) return;
99
101
if (e.target === e.currentTarget) {
100
102
if (