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

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

@@ -410,7 +410,8 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
   }, [data, isOpen, targetPathOrId]);
   }, [data, isOpen, targetPathOrId]);
 
 
   // Rename process
   // Rename process
-  const isRenameProcessable = page.processData?.Rename != null ? page.processData.Rename.isProcessable : true;
+  // Whether to show the warning icon to indicate that the path needs fixing on the left side of a path name on pagetree
+  const showFixPathWarningIcon = page.processData?.Rename != null ? page.processData.Rename.isProcessable : false;
 
 
   return (
   return (
     <div
     <div
@@ -449,7 +450,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
           )
           )
           : (
           : (
             <>
             <>
-              { isRenameProcessable && (
+              { showFixPathWarningIcon && (
                 <i className="fa fa-warning mr-2 text-warning"></i>
                 <i className="fa fa-warning mr-2 text-warning"></i>
               )}
               )}
               <a href={`/${page._id}`} className="grw-pagetree-title-anchor flex-grow-1">
               <a href={`/${page._id}`} className="grw-pagetree-title-anchor flex-grow-1">