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

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

@@ -105,7 +105,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
     type: 'PAGE_TREE',
     item: { page },
     end: () => {
-      // set d-none to dropped Item
+      // in order to set d-none to dropped Item
       setRenamed(true);
     },
     collect: monitor => ({
@@ -145,7 +145,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
       removeDisplayNoneFromItemByPageId(droppedPage._id);
 
       if (err.code === 'operation__blocked') {
-        toastError('TODO: i18n You cannot move this page now.');
+        toastWarning('TODO: i18n You cannot move this page now.');
       }
       else {
         toastError('TODO: i18n Something went wrong with moving page.');