|
@@ -16,7 +16,7 @@ import { toastWarning, toastError, toastSuccess } from '~/client/util/apiNotific
|
|
|
|
|
|
|
|
import { useSWRxPageChildren } from '~/stores/page-listing';
|
|
import { useSWRxPageChildren } from '~/stores/page-listing';
|
|
|
import { apiv3Put, apiv3Post } from '~/client/util/apiv3-client';
|
|
import { apiv3Put, apiv3Post } from '~/client/util/apiv3-client';
|
|
|
-import { IPageForPageRenameModal, IPageForPageDuplicateModal } from '~/stores/modal';
|
|
|
|
|
|
|
+import { IPageForPageDuplicateModal } from '~/stores/modal';
|
|
|
|
|
|
|
|
import TriangleIcon from '~/components/Icons/TriangleIcon';
|
|
import TriangleIcon from '~/components/Icons/TriangleIcon';
|
|
|
import { bookmark, unbookmark } from '~/client/services/page-operation';
|
|
import { bookmark, unbookmark } from '~/client/services/page-operation';
|
|
@@ -24,7 +24,9 @@ import ClosableTextInput, { AlertInfo, AlertType } from '../../Common/ClosableTe
|
|
|
import { PageItemControl } from '../../Common/Dropdown/PageItemControl';
|
|
import { PageItemControl } from '../../Common/Dropdown/PageItemControl';
|
|
|
import { ItemNode } from './ItemNode';
|
|
import { ItemNode } from './ItemNode';
|
|
|
import { usePageTreeDescCountMap } from '~/stores/ui';
|
|
import { usePageTreeDescCountMap } from '~/stores/ui';
|
|
|
-import { IPageHasId, IPageInfoAll, IPageToDeleteWithMeta } from '~/interfaces/page';
|
|
|
|
|
|
|
+import {
|
|
|
|
|
+ IPageHasId, IPageInfoAll, IPageToDeleteWithMeta,
|
|
|
|
|
+} from '~/interfaces/page';
|
|
|
|
|
|
|
|
|
|
|
|
|
const logger = loggerFactory('growi:cli:Item');
|
|
const logger = loggerFactory('growi:cli:Item');
|
|
@@ -34,11 +36,10 @@ interface ItemProps {
|
|
|
isEnableActions: boolean
|
|
isEnableActions: boolean
|
|
|
itemNode: ItemNode
|
|
itemNode: ItemNode
|
|
|
targetPathOrId?: string
|
|
targetPathOrId?: string
|
|
|
- isScrolled: boolean,
|
|
|
|
|
isOpen?: boolean
|
|
isOpen?: boolean
|
|
|
isEnabledAttachTitleHeader?: boolean
|
|
isEnabledAttachTitleHeader?: boolean
|
|
|
|
|
+ onRenamed?(): void
|
|
|
onClickDuplicateMenuItem?(pageToDuplicate: IPageForPageDuplicateModal): void
|
|
onClickDuplicateMenuItem?(pageToDuplicate: IPageForPageDuplicateModal): void
|
|
|
- onClickRenameMenuItem?(pageToRename: IPageForPageRenameModal): void
|
|
|
|
|
onClickDeleteMenuItem?(pageToDelete: IPageToDeleteWithMeta): void
|
|
onClickDeleteMenuItem?(pageToDelete: IPageToDeleteWithMeta): void
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -100,7 +101,7 @@ type ItemCountProps = {
|
|
|
const ItemCount: FC<ItemCountProps> = (props:ItemCountProps) => {
|
|
const ItemCount: FC<ItemCountProps> = (props:ItemCountProps) => {
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <span className="grw-pagetree-count badge badge-pill badge-light text-muted">
|
|
|
|
|
|
|
+ <span className="grw-pagetree-count px-0 badge badge-pill badge-light">
|
|
|
{props.descendantCount}
|
|
{props.descendantCount}
|
|
|
</span>
|
|
</span>
|
|
|
</>
|
|
</>
|
|
@@ -111,7 +112,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
const {
|
|
const {
|
|
|
itemNode, targetPathOrId, isOpen: _isOpen = false, isEnabledAttachTitleHeader,
|
|
itemNode, targetPathOrId, isOpen: _isOpen = false, isEnabledAttachTitleHeader,
|
|
|
- onClickDuplicateMenuItem, onClickRenameMenuItem, onClickDeleteMenuItem, isEnableActions,
|
|
|
|
|
|
|
+ onRenamed, onClickDuplicateMenuItem, onClickDeleteMenuItem, isEnableActions,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
|
|
|
const { page, children } = itemNode;
|
|
const { page, children } = itemNode;
|
|
@@ -120,7 +121,8 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
const [isOpen, setIsOpen] = useState(_isOpen);
|
|
const [isOpen, setIsOpen] = useState(_isOpen);
|
|
|
const [isNewPageInputShown, setNewPageInputShown] = useState(false);
|
|
const [isNewPageInputShown, setNewPageInputShown] = useState(false);
|
|
|
const [shouldHide, setShouldHide] = useState(false);
|
|
const [shouldHide, setShouldHide] = useState(false);
|
|
|
- // const [isRenameInputShown, setRenameInputShown] = useState(false);
|
|
|
|
|
|
|
+ const [isRenameInputShown, setRenameInputShown] = useState(false);
|
|
|
|
|
+ const [isRenaming, setRenaming] = useState(false);
|
|
|
|
|
|
|
|
const { data, mutate: mutateChildren } = useSWRxPageChildren(isOpen ? page._id : null);
|
|
const { data, mutate: mutateChildren } = useSWRxPageChildren(isOpen ? page._id : null);
|
|
|
|
|
|
|
@@ -150,8 +152,10 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
type: 'PAGE_TREE',
|
|
type: 'PAGE_TREE',
|
|
|
item: { page },
|
|
item: { page },
|
|
|
canDrag: () => {
|
|
canDrag: () => {
|
|
|
- const isDraggable = !pagePathUtils.isUserPage(page.path || '/');
|
|
|
|
|
- return isDraggable;
|
|
|
|
|
|
|
+ if (page.path == null) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ return !pagePathUtils.isUsersProtectedPages(page.path);
|
|
|
},
|
|
},
|
|
|
end: (item, monitor) => {
|
|
end: (item, monitor) => {
|
|
|
// in order to set d-none to dropped Item
|
|
// in order to set d-none to dropped Item
|
|
@@ -185,7 +189,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
revisionId: droppedPage.revision,
|
|
revisionId: droppedPage.revision,
|
|
|
newPagePath,
|
|
newPagePath,
|
|
|
isRenameRedirect: false,
|
|
isRenameRedirect: false,
|
|
|
- isRemainMetadata: false,
|
|
|
|
|
|
|
+ updateMetadata: true,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
await mutateChildren();
|
|
await mutateChildren();
|
|
@@ -216,7 +220,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
if (monitor.isOver()) {
|
|
if (monitor.isOver()) {
|
|
|
setIsOpen(true);
|
|
setIsOpen(true);
|
|
|
}
|
|
}
|
|
|
- }, 1000);
|
|
|
|
|
|
|
+ }, 600);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
canDrop: (item) => {
|
|
canDrop: (item) => {
|
|
@@ -256,57 +260,50 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
onClickDuplicateMenuItem(pageToDuplicate);
|
|
onClickDuplicateMenuItem(pageToDuplicate);
|
|
|
}, [onClickDuplicateMenuItem, page]);
|
|
}, [onClickDuplicateMenuItem, page]);
|
|
|
|
|
|
|
|
|
|
+ const renameMenuItemClickHandler = useCallback(() => {
|
|
|
|
|
+ setRenameInputShown(true);
|
|
|
|
|
+ }, []);
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
- * Rename: TODO: rename page title on input form by #87757
|
|
|
|
|
- */
|
|
|
|
|
-
|
|
|
|
|
- // const onClickRenameButton = useCallback(async(_pageId: string): Promise<void> => {
|
|
|
|
|
- // setRenameInputShown(true);
|
|
|
|
|
- // }, []);
|
|
|
|
|
-
|
|
|
|
|
- // const onPressEnterForRenameHandler = async(inputText: string) => {
|
|
|
|
|
- // const parentPath = getParentPagePath(page.path as string)
|
|
|
|
|
- // const newPagePath = `${parentPath}/${inputText}`;
|
|
|
|
|
-
|
|
|
|
|
- // try {
|
|
|
|
|
- // setPageTitle(inputText);
|
|
|
|
|
- // setRenameInputShown(false);
|
|
|
|
|
- // await apiv3Put('/pages/rename', { newPagePath, pageId: page._id, revisionId: page.revision });
|
|
|
|
|
- // }
|
|
|
|
|
- // catch (err) {
|
|
|
|
|
- // // open ClosableInput and set pageTitle back to the previous title
|
|
|
|
|
- // setPageTitle(nodePath.basename(pageTitle as string));
|
|
|
|
|
- // setRenameInputShown(true);
|
|
|
|
|
- // toastError(err);
|
|
|
|
|
- // }
|
|
|
|
|
- // };
|
|
|
|
|
-
|
|
|
|
|
- const renameMenuItemClickHandler = useCallback((): void => {
|
|
|
|
|
- if (onClickRenameMenuItem == null) {
|
|
|
|
|
|
|
+ const onPressEnterForRenameHandler = async(inputText: string) => {
|
|
|
|
|
+ const parentPath = pathUtils.addTrailingSlash(nodePath.dirname(page.path ?? ''));
|
|
|
|
|
+ const newPagePath = nodePath.resolve(parentPath, inputText);
|
|
|
|
|
+
|
|
|
|
|
+ if (newPagePath === page.path) {
|
|
|
|
|
+ setRenameInputShown(false);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const { _id: pageId, revision: revisionId, path } = page;
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ setRenameInputShown(false);
|
|
|
|
|
+ setRenaming(true);
|
|
|
|
|
+ await apiv3Put('/pages/rename', {
|
|
|
|
|
+ pageId: page._id,
|
|
|
|
|
+ revisionId: page.revision,
|
|
|
|
|
+ newPagePath,
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
- if (!page.isEmpty && revisionId == null) {
|
|
|
|
|
- throw Error('Existing page should have revisionId');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (onRenamed != null) {
|
|
|
|
|
+ onRenamed();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- if (pageId == null || path == null) {
|
|
|
|
|
- throw Error('Any of _id and revisionId and path must not be null.');
|
|
|
|
|
|
|
+ toastSuccess(t('renamed_pages', { path: page.path }));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- const pageToRename: IPageForPageRenameModal = {
|
|
|
|
|
- pageId,
|
|
|
|
|
- revisionId: revisionId as string,
|
|
|
|
|
- path,
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- onClickRenameMenuItem(pageToRename);
|
|
|
|
|
- }, [onClickRenameMenuItem, page]);
|
|
|
|
|
|
|
+ catch (err) {
|
|
|
|
|
+ setRenameInputShown(true);
|
|
|
|
|
+ toastError(err);
|
|
|
|
|
+ }
|
|
|
|
|
+ finally {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ setRenaming(false);
|
|
|
|
|
+ }, 1000);
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
const deleteMenuItemClickHandler = useCallback(async(_pageId: string, pageInfo: IPageInfoAll | undefined): Promise<void> => {
|
|
const deleteMenuItemClickHandler = useCallback(async(_pageId: string, pageInfo: IPageInfoAll | undefined): Promise<void> => {
|
|
|
|
|
+ if (onClickDeleteMenuItem == null) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (page._id == null || page.revision == null || page.path == null) {
|
|
if (page._id == null || page.revision == null || page.path == null) {
|
|
|
throw Error('Any of _id, revision, and path must not be null.');
|
|
throw Error('Any of _id, revision, and path must not be null.');
|
|
|
}
|
|
}
|
|
@@ -320,15 +317,13 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
meta: pageInfo,
|
|
meta: pageInfo,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- if (onClickDeleteMenuItem != null) {
|
|
|
|
|
- onClickDeleteMenuItem(pageToDelete);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ onClickDeleteMenuItem(pageToDelete);
|
|
|
}, [onClickDeleteMenuItem, page]);
|
|
}, [onClickDeleteMenuItem, page]);
|
|
|
|
|
|
|
|
const onPressEnterForCreateHandler = async(inputText: string) => {
|
|
const onPressEnterForCreateHandler = async(inputText: string) => {
|
|
|
setNewPageInputShown(false);
|
|
setNewPageInputShown(false);
|
|
|
const parentPath = pathUtils.addTrailingSlash(page.path as string);
|
|
const parentPath = pathUtils.addTrailingSlash(page.path as string);
|
|
|
- const newPagePath = `${parentPath}${inputText}`;
|
|
|
|
|
|
|
+ const newPagePath = nodePath.resolve(parentPath, inputText);
|
|
|
const isCreatable = pagePathUtils.isCreatablePage(newPagePath);
|
|
const isCreatable = pagePathUtils.isCreatablePage(newPagePath);
|
|
|
|
|
|
|
|
if (!isCreatable) {
|
|
if (!isCreatable) {
|
|
@@ -338,7 +333,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
|
|
|
|
|
let initBody = '';
|
|
let initBody = '';
|
|
|
if (isEnabledAttachTitleHeader) {
|
|
if (isEnabledAttachTitleHeader) {
|
|
|
- const pageTitle = pathUtils.addHeadingSlash(nodePath.basename(newPagePath));
|
|
|
|
|
|
|
+ const pageTitle = nodePath.basename(newPagePath);
|
|
|
initBody = pathUtils.attachTitleHeader(pageTitle);
|
|
initBody = pathUtils.attachTitleHeader(pageTitle);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -377,12 +372,6 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
- useEffect(() => {
|
|
|
|
|
- if (!props.isScrolled && page.isTarget) {
|
|
|
|
|
- document.dispatchEvent(new CustomEvent('targetItemRendered'));
|
|
|
|
|
- }
|
|
|
|
|
- }, [props.isScrolled, page.isTarget]);
|
|
|
|
|
-
|
|
|
|
|
// didMount
|
|
// didMount
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
if (hasChildren()) setIsOpen(true);
|
|
if (hasChildren()) setIsOpen(true);
|
|
@@ -417,39 +406,44 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
>
|
|
>
|
|
|
<li
|
|
<li
|
|
|
ref={(c) => { drag(c); drop(c) }}
|
|
ref={(c) => { drag(c); drop(c) }}
|
|
|
- className={`list-group-item list-group-item-action border-0 py-0 d-flex align-items-center ${page.isTarget ? 'grw-pagetree-is-target' : ''}`}
|
|
|
|
|
- id={page.isTarget ? 'grw-pagetree-is-target' : `grw-pagetree-list-${page._id}`}
|
|
|
|
|
|
|
+ className={`list-group-item list-group-item-action border-0 py-0 pr-3 d-flex align-items-center
|
|
|
|
|
+ ${page.isTarget ? 'grw-pagetree-current-page-item' : ''}`}
|
|
|
|
|
+ id={page.isTarget ? 'grw-pagetree-current-page-item' : `grw-pagetree-list-${page._id}`}
|
|
|
>
|
|
>
|
|
|
<div className="grw-triangle-container d-flex justify-content-center">
|
|
<div className="grw-triangle-container d-flex justify-content-center">
|
|
|
{hasDescendants && (
|
|
{hasDescendants && (
|
|
|
<button
|
|
<button
|
|
|
type="button"
|
|
type="button"
|
|
|
- className={`grw-pagetree-button btn ${isOpen ? 'grw-pagetree-open' : ''}`}
|
|
|
|
|
|
|
+ className={`grw-pagetree-triangle-btn btn ${isOpen ? 'grw-pagetree-open' : ''}`}
|
|
|
onClick={onClickLoadChildren}
|
|
onClick={onClickLoadChildren}
|
|
|
>
|
|
>
|
|
|
- <div className="grw-triangle-icon d-flex justify-content-center">
|
|
|
|
|
|
|
+ <div className="d-flex justify-content-center">
|
|
|
<TriangleIcon />
|
|
<TriangleIcon />
|
|
|
</div>
|
|
</div>
|
|
|
</button>
|
|
</button>
|
|
|
)}
|
|
)}
|
|
|
</div>
|
|
</div>
|
|
|
- {/* TODO: rename page title on input form by 87757 */}
|
|
|
|
|
- {/* { isRenameInputShown && (
|
|
|
|
|
- <ClosableTextInput
|
|
|
|
|
- isShown
|
|
|
|
|
- value={nodePath.basename(pageTitle as string)}
|
|
|
|
|
- placeholder={t('Input page name')}
|
|
|
|
|
- onClickOutside={() => { setRenameInputShown(false) }}
|
|
|
|
|
- onPressEnter={onPressEnterForRenameHandler}
|
|
|
|
|
- inputValidator={inputValidator}
|
|
|
|
|
- />
|
|
|
|
|
- )}
|
|
|
|
|
- { !isRenameInputShown && ( */}
|
|
|
|
|
- <a href={`/${page._id}`} className="grw-pagetree-title-anchor flex-grow-1">
|
|
|
|
|
- <p className={`text-truncate m-auto ${page.isEmpty && 'text-muted'}`}>{nodePath.basename(page.path ?? '') || '/'}</p>
|
|
|
|
|
- </a>
|
|
|
|
|
- {/* )} */}
|
|
|
|
|
- {(descendantCount > 0) && (
|
|
|
|
|
|
|
+ { isRenameInputShown
|
|
|
|
|
+ ? (
|
|
|
|
|
+ <ClosableTextInput
|
|
|
|
|
+ value={nodePath.basename(page.path ?? '')}
|
|
|
|
|
+ placeholder={t('Input page name')}
|
|
|
|
|
+ onClickOutside={() => { setRenameInputShown(false) }}
|
|
|
|
|
+ onPressEnter={onPressEnterForRenameHandler}
|
|
|
|
|
+ inputValidator={inputValidator}
|
|
|
|
|
+ />
|
|
|
|
|
+ )
|
|
|
|
|
+ : (
|
|
|
|
|
+ <>
|
|
|
|
|
+ { isRenaming && (
|
|
|
|
|
+ <i className="fa fa-spinner fa-pulse mr-2 text-muted"></i>
|
|
|
|
|
+ )}
|
|
|
|
|
+ <a href={`/${page._id}`} className="grw-pagetree-title-anchor flex-grow-1">
|
|
|
|
|
+ <p className={`text-truncate m-auto ${page.isEmpty && 'text-muted'}`}>{nodePath.basename(page.path ?? '') || '/'}</p>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </>
|
|
|
|
|
+ )}
|
|
|
|
|
+ {descendantCount > 0 && !isRenameInputShown && (
|
|
|
<div className="grw-pagetree-count-wrapper">
|
|
<div className="grw-pagetree-count-wrapper">
|
|
|
<ItemCount descendantCount={descendantCount} />
|
|
<ItemCount descendantCount={descendantCount} />
|
|
|
</div>
|
|
</div>
|
|
@@ -462,25 +456,27 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
onClickDuplicateMenuItem={duplicateMenuItemClickHandler}
|
|
onClickDuplicateMenuItem={duplicateMenuItemClickHandler}
|
|
|
onClickRenameMenuItem={renameMenuItemClickHandler}
|
|
onClickRenameMenuItem={renameMenuItemClickHandler}
|
|
|
onClickDeleteMenuItem={deleteMenuItemClickHandler}
|
|
onClickDeleteMenuItem={deleteMenuItemClickHandler}
|
|
|
|
|
+ isInstantRename
|
|
|
>
|
|
>
|
|
|
{/* pass the color property to reactstrap dropdownToggle props. https://6-4-0--reactstrap.netlify.app/components/dropdowns/ */}
|
|
{/* pass the color property to reactstrap dropdownToggle props. https://6-4-0--reactstrap.netlify.app/components/dropdowns/ */}
|
|
|
- <DropdownToggle color="transparent" className="border-0 rounded btn-page-item-control p-0 grw-visible-on-hover">
|
|
|
|
|
- <i className="icon-options fa fa-rotate-90 text-muted p-1"></i>
|
|
|
|
|
|
|
+ <DropdownToggle color="transparent" className="border-0 rounded btn-page-item-control p-0 grw-visible-on-hover mr-1">
|
|
|
|
|
+ <i className="icon-options fa fa-rotate-90 p-1"></i>
|
|
|
</DropdownToggle>
|
|
</DropdownToggle>
|
|
|
</PageItemControl>
|
|
</PageItemControl>
|
|
|
- <button
|
|
|
|
|
- type="button"
|
|
|
|
|
- className="border-0 rounded btn btn-page-item-control p-0 grw-visible-on-hover"
|
|
|
|
|
- onClick={onClickPlusButton}
|
|
|
|
|
- >
|
|
|
|
|
- <i className="icon-plus text-muted d-block p-1" />
|
|
|
|
|
- </button>
|
|
|
|
|
|
|
+ {!pagePathUtils.isUsersTopPage(page.path ?? '') && (
|
|
|
|
|
+ <button
|
|
|
|
|
+ type="button"
|
|
|
|
|
+ className="border-0 rounded btn btn-page-item-control p-0 grw-visible-on-hover"
|
|
|
|
|
+ onClick={onClickPlusButton}
|
|
|
|
|
+ >
|
|
|
|
|
+ <i className="icon-plus d-block p-0" />
|
|
|
|
|
+ </button>
|
|
|
|
|
+ )}
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
|
|
|
|
|
- {isEnableActions && (
|
|
|
|
|
|
|
+ {isEnableActions && isNewPageInputShown && (
|
|
|
<ClosableTextInput
|
|
<ClosableTextInput
|
|
|
- isShown={isNewPageInputShown}
|
|
|
|
|
placeholder={t('Input page name')}
|
|
placeholder={t('Input page name')}
|
|
|
onClickOutside={() => { setNewPageInputShown(false) }}
|
|
onClickOutside={() => { setNewPageInputShown(false) }}
|
|
|
onPressEnter={onPressEnterForCreateHandler}
|
|
onPressEnter={onPressEnterForCreateHandler}
|
|
@@ -494,11 +490,10 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
isEnableActions={isEnableActions}
|
|
isEnableActions={isEnableActions}
|
|
|
itemNode={node}
|
|
itemNode={node}
|
|
|
isOpen={false}
|
|
isOpen={false}
|
|
|
- isScrolled={props.isScrolled}
|
|
|
|
|
targetPathOrId={targetPathOrId}
|
|
targetPathOrId={targetPathOrId}
|
|
|
isEnabledAttachTitleHeader={isEnabledAttachTitleHeader}
|
|
isEnabledAttachTitleHeader={isEnabledAttachTitleHeader}
|
|
|
|
|
+ onRenamed={onRenamed}
|
|
|
onClickDuplicateMenuItem={onClickDuplicateMenuItem}
|
|
onClickDuplicateMenuItem={onClickDuplicateMenuItem}
|
|
|
- onClickRenameMenuItem={onClickRenameMenuItem}
|
|
|
|
|
onClickDeleteMenuItem={onClickDeleteMenuItem}
|
|
onClickDeleteMenuItem={onClickDeleteMenuItem}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|