Skip to content

Commit

Permalink
Page move dialog: fix currently selected
Browse files Browse the repository at this point in the history
Fixes #5573
  • Loading branch information
distantnative committed Nov 5, 2023
1 parent 046c7d7 commit 0710fca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/areas/site/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
'props' => [
'value' => [
'move' => $page->panel()->url(true),
'parent' => $page->parent()?->panel()->url(true) ?? '/site'
'parent' => $page->parent()?->uuid()?->toString() ?? 'site://'
]
]
];
Expand Down
2 changes: 1 addition & 1 deletion panel/src/components/Dialogs/PageMoveDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
emits: ["cancel", "input", "submit"],
methods: {
select(page) {
this.$emit("input", { ...this.value, parent: page.id });
this.$emit("input", { ...this.value, parent: page.uuid });
}
}
};
Expand Down

0 comments on commit 0710fca

Please sign in to comment.