|
@@ -15,15 +15,15 @@ const { isTrashPage } = pagePathUtils;
|
|
|
type Props = {
|
|
type Props = {
|
|
|
pagePath: string,
|
|
pagePath: string,
|
|
|
pageId?: string | null,
|
|
pageId?: string | null,
|
|
|
- isSingleLineMode?:boolean,
|
|
|
|
|
- isCompactMode?:boolean,
|
|
|
|
|
|
|
+ isSingleLineMode?: boolean,
|
|
|
|
|
+ isCollapseParents?: boolean,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const CopyDropdown = dynamic(() => import('./Page/CopyDropdown'), { ssr: false });
|
|
const CopyDropdown = dynamic(() => import('./Page/CopyDropdown'), { ssr: false });
|
|
|
|
|
|
|
|
export const PagePathNav: FC<Props> = (props: Props) => {
|
|
export const PagePathNav: FC<Props> = (props: Props) => {
|
|
|
const {
|
|
const {
|
|
|
- pageId, pagePath, isSingleLineMode, isCompactMode,
|
|
|
|
|
|
|
+ pageId, pagePath, isSingleLineMode, isCollapseParents,
|
|
|
} = props;
|
|
} = props;
|
|
|
const dPagePath = new DevidedPagePath(pagePath, false, true);
|
|
const dPagePath = new DevidedPagePath(pagePath, false, true);
|
|
|
|
|
|
|
@@ -47,7 +47,7 @@ export const PagePathNav: FC<Props> = (props: Props) => {
|
|
|
latterLink = <PagePathHierarchicalLink linkedPagePath={linkedPagePathLatter} basePath={dPagePath.former} isInTrash={isInTrash} />;
|
|
latterLink = <PagePathHierarchicalLink linkedPagePath={linkedPagePathLatter} basePath={dPagePath.former} isInTrash={isInTrash} />;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const copyDropdownId = `copydropdown${isCompactMode ? '-subnav-compact' : ''}-${pageId}`;
|
|
|
|
|
|
|
+ const copyDropdownId = `copydropdown-${pageId}`;
|
|
|
const copyDropdownToggleClassName = 'd-block btn-outline-secondary btn-copy border-0 text-muted p-2';
|
|
const copyDropdownToggleClassName = 'd-block btn-outline-secondary btn-copy border-0 text-muted p-2';
|
|
|
|
|
|
|
|
return (
|
|
return (
|