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)}
|
||||
/>
|
||||
</Tooltip>
|
||||
{editor.getAttributes("tableOfContents").tableType == "Child Pages" && (
|
||||
<Tooltip position="top" label="Show page icons">
|
||||
<Group gap="xs">
|
||||
<Text size="sm">Page Icons</Text>
|
||||
@ -113,6 +114,7 @@ export function TableOfContentsMenu({ editor }: EditorMenuProps) {
|
||||
/>
|
||||
</Group>
|
||||
</Tooltip>
|
||||
)}
|
||||
</Group>
|
||||
</Fieldset>
|
||||
</BaseBubbleMenu>
|
||||
|
||||
Reference in New Issue
Block a user