|
|
@@ -4,6 +4,7 @@ import React, {
|
|
|
import nodePath from 'path';
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
import { pagePathUtils } from '@growi/core';
|
|
|
+import { toastWarning } from '~/client/util/apiNotification';
|
|
|
|
|
|
import { ItemNode } from './ItemNode';
|
|
|
import { IPageHasId } from '~/interfaces/page';
|
|
|
@@ -73,10 +74,10 @@ const ItemControl: FC<ItemControlProps> = memo((props: ItemControlProps) => {
|
|
|
<PageItemControl page={props.page} onClickDeleteButton={onClickDeleteButton} isEnableActions={props.isEnableActions} isDeletable={props.isDeletable} />
|
|
|
<button
|
|
|
type="button"
|
|
|
- className="btn-link nav-link border-0 rounded grw-btn-page-management py-0"
|
|
|
+ className="border-0 rounded grw-btn-page-management p-0"
|
|
|
onClick={onClickPlusButton}
|
|
|
>
|
|
|
- <i className="icon-plus text-muted"></i>
|
|
|
+ <i className="icon-plus text-muted d-block p-1" />
|
|
|
</button>
|
|
|
</>
|
|
|
);
|
|
|
@@ -148,7 +149,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
|
|
|
// TODO: go to create page page
|
|
|
const onPressEnterHandler = () => {
|
|
|
- console.log('Enter key was pressed!');
|
|
|
+ toastWarning(t('search_result.currently_not_implemented'));
|
|
|
};
|
|
|
|
|
|
// didMount
|
|
|
@@ -179,7 +180,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
|
|
|
return (
|
|
|
<>
|
|
|
- <div className={`grw-pagetree-item d-flex align-items-center ${page.isTarget ? 'grw-pagetree-is-target' : ''}`}>
|
|
|
+ <div className={`grw-pagetree-item d-flex align-items-center pr-1 ${page.isTarget ? 'grw-pagetree-is-target' : ''}`}>
|
|
|
<button
|
|
|
type="button"
|
|
|
className={`grw-pagetree-button btn ${isOpen ? 'grw-pagetree-open' : ''}`}
|
|
|
@@ -217,7 +218,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
)}
|
|
|
{
|
|
|
isOpen && hasChildren() && currentChildren.map(node => (
|
|
|
- <div key={node.page._id} className="ml-3 mt-2">
|
|
|
+ <div key={node.page._id} className="grw-pagetree-item-container mt-2">
|
|
|
<Item
|
|
|
isEnableActions={isEnableActions}
|
|
|
itemNode={node}
|