yohei0125 3 лет назад
Родитель
Сommit
f487e45f6c
1 измененных файлов с 9 добавлено и 3 удалено
  1. 9 3
      packages/app/src/components/Sidebar/PageTree/Item.tsx

+ 9 - 3
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -7,8 +7,7 @@ import nodePath from 'path';
 import { pathUtils, pagePathUtils } from '@growi/core';
 import { useDrag, useDrop } from 'react-dnd';
 import { useTranslation } from 'react-i18next';
-import { DropdownToggle } from 'reactstrap';
-
+import { UncontrolledTooltip, DropdownToggle } from 'reactstrap';
 
 import { bookmark, unbookmark, resumeRenameOperation } from '~/client/services/page-operation';
 import { toastWarning, toastError, toastSuccess } from '~/client/util/apiNotification';
@@ -466,8 +465,15 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
                 <i className="fa fa-spinner fa-pulse mr-2 text-muted"></i>
               )}
               { (!isRenaming && isRenameProcessable) && (
-                <i className="fa fa-warning mr-2 text-warning"></i>
+                <i id="path-recovery" className="fa fa-warning mr-2 text-warning"></i>
+              )}
+
+              {page.processData != null && (
+                <UncontrolledTooltip placement="top" target="path-recovery" fade={false}>
+                  {t('tooltip.operation.attention.rename')}
+                </UncontrolledTooltip>
               )}
+
               <a href={`/${page._id}`} className="grw-pagetree-title-anchor flex-grow-1">
                 <p className={`text-truncate m-auto ${page.isEmpty && 'grw-sidebar-text-muted'}`}>{nodePath.basename(page.path ?? '') || '/'}</p>
               </a>