1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[wiki] change drag page into another page (#6422)

* 01 change drag page into another page

* 02 delete useless codes

* update move page

* fix invalid position

* delete useless codes

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
Michael An
2024-07-27 07:52:12 +08:00
committed by GitHub
parent 2056b73c91
commit ed1424d4f9
8 changed files with 168 additions and 100 deletions

View File

@@ -89,8 +89,7 @@ class SidePanel extends Component {
movePage = ({ moved_page_id, target_page_id, move_position }) => {
let config = deepCopy(this.props.config);
let { navigation } = config;
PageUtils.movePage(navigation, moved_page_id, target_page_id, move_position);
config.navigation = navigation;
config.navigation = PageUtils.movePage(navigation, moved_page_id, target_page_id, move_position);
JSON.stringify(config);
this.props.updateWikiConfig(config);
};