|
@@ -14,7 +14,7 @@ import { bookmark, unbookmark, resumeRenameOperation } from '~/client/services/p
|
|
|
import { toastWarning, toastError, toastSuccess } from '~/client/util/apiNotification';
|
|
import { toastWarning, toastError, toastSuccess } from '~/client/util/apiNotification';
|
|
|
import { apiv3Put, apiv3Post } from '~/client/util/apiv3-client';
|
|
import { apiv3Put, apiv3Post } from '~/client/util/apiv3-client';
|
|
|
import TriangleIcon from '~/components/Icons/TriangleIcon';
|
|
import TriangleIcon from '~/components/Icons/TriangleIcon';
|
|
|
-import NotAvailableForGuest from '~/components/NotAvailableForGuest';
|
|
|
|
|
|
|
+import { NotAvailableForGuest } from '~/components/NotAvailableForGuest';
|
|
|
import {
|
|
import {
|
|
|
IPageHasId, IPageInfoAll, IPageToDeleteWithMeta,
|
|
IPageHasId, IPageInfoAll, IPageToDeleteWithMeta,
|
|
|
} from '~/interfaces/page';
|
|
} from '~/interfaces/page';
|
|
@@ -482,27 +482,27 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
<CountBadge count={descendantCount} />
|
|
<CountBadge count={descendantCount} />
|
|
|
</div>
|
|
</div>
|
|
|
)}
|
|
)}
|
|
|
- <div className="grw-pagetree-control d-flex">
|
|
|
|
|
- <PageItemControl
|
|
|
|
|
- pageId={page._id}
|
|
|
|
|
- isEnableActions={isEnableActions}
|
|
|
|
|
- onClickBookmarkMenuItem={bookmarkMenuItemClickHandler}
|
|
|
|
|
- onClickDuplicateMenuItem={duplicateMenuItemClickHandler}
|
|
|
|
|
- onClickRenameMenuItem={renameMenuItemClickHandler}
|
|
|
|
|
- onClickDeleteMenuItem={deleteMenuItemClickHandler}
|
|
|
|
|
- onClickPathRecoveryMenuItem={pathRecoveryMenuItemClickHandler}
|
|
|
|
|
- isInstantRename
|
|
|
|
|
- // Todo: It is wanted to find a better way to pass operationProcessData to PageItemControl
|
|
|
|
|
- operationProcessData={page.processData}
|
|
|
|
|
- >
|
|
|
|
|
- {/* 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 mr-1">
|
|
|
|
|
- <NotAvailableForGuest>
|
|
|
|
|
|
|
+ <NotAvailableForGuest>
|
|
|
|
|
+ <div className="grw-pagetree-control d-flex">
|
|
|
|
|
+ <PageItemControl
|
|
|
|
|
+ pageId={page._id}
|
|
|
|
|
+ isEnableActions={isEnableActions}
|
|
|
|
|
+ onClickBookmarkMenuItem={bookmarkMenuItemClickHandler}
|
|
|
|
|
+ onClickDuplicateMenuItem={duplicateMenuItemClickHandler}
|
|
|
|
|
+ onClickRenameMenuItem={renameMenuItemClickHandler}
|
|
|
|
|
+ onClickDeleteMenuItem={deleteMenuItemClickHandler}
|
|
|
|
|
+ onClickPathRecoveryMenuItem={pathRecoveryMenuItemClickHandler}
|
|
|
|
|
+ isInstantRename
|
|
|
|
|
+ // Todo: It is wanted to find a better way to pass operationProcessData to PageItemControl
|
|
|
|
|
+ operationProcessData={page.processData}
|
|
|
|
|
+ >
|
|
|
|
|
+ {/* 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 mr-1">
|
|
|
<i id='option-button-in-page-tree' className="icon-options fa fa-rotate-90 p-1"></i>
|
|
<i id='option-button-in-page-tree' className="icon-options fa fa-rotate-90 p-1"></i>
|
|
|
- </NotAvailableForGuest>
|
|
|
|
|
- </DropdownToggle>
|
|
|
|
|
- </PageItemControl>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </DropdownToggle>
|
|
|
|
|
+ </PageItemControl>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </NotAvailableForGuest>
|
|
|
|
|
|
|
|
{!pagePathUtils.isUsersTopPage(page.path ?? '') && (
|
|
{!pagePathUtils.isUsersTopPage(page.path ?? '') && (
|
|
|
<NotAvailableForGuest>
|
|
<NotAvailableForGuest>
|