|
@@ -181,6 +181,10 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (pagePathUtils.isUsersProtectedPages(page.path)) {
|
|
|
|
|
+ return toastError(t('pagetree.forbidden_to_move_target_page'));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
const newPagePath = getNewPathAfterMoved(droppedPage.path, page.path);
|
|
const newPagePath = getNewPathAfterMoved(droppedPage.path, page.path);
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -205,6 +209,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
toastWarning(t('pagetree.you_cannot_move_this_page_now'));
|
|
toastWarning(t('pagetree.you_cannot_move_this_page_now'));
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
|
|
+ console.log('err.code', err.code);
|
|
|
toastError(t('pagetree.something_went_wrong_with_moving_page'));
|
|
toastError(t('pagetree.something_went_wrong_with_moving_page'));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|