mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-17 02:01:03 +10:00
Conditional showing of page icons checkbox
This commit is contained in:
@ -104,6 +104,7 @@ export function TableOfContentsMenu({ editor }: EditorMenuProps) {
|
|||||||
onChange={(value: "Contents" | "Child Pages") => setTableType(value)}
|
onChange={(value: "Contents" | "Child Pages") => setTableType(value)}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
{editor.getAttributes("tableOfContents").tableType == "Child Pages" && (
|
||||||
<Tooltip position="top" label="Show page icons">
|
<Tooltip position="top" label="Show page icons">
|
||||||
<Group gap="xs">
|
<Group gap="xs">
|
||||||
<Text size="sm">Page Icons</Text>
|
<Text size="sm">Page Icons</Text>
|
||||||
@ -113,6 +114,7 @@ export function TableOfContentsMenu({ editor }: EditorMenuProps) {
|
|||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
)}
|
||||||
</Group>
|
</Group>
|
||||||
</Fieldset>
|
</Fieldset>
|
||||||
</BaseBubbleMenu>
|
</BaseBubbleMenu>
|
||||||
|
|||||||
Reference in New Issue
Block a user