diff --git a/panel/src/components/Sections/PagesSection.vue b/panel/src/components/Sections/PagesSection.vue index 008d382dc2..6dd3496c8e 100644 --- a/panel/src/components/Sections/PagesSection.vue +++ b/panel/src/components/Sections/PagesSection.vue @@ -87,9 +87,11 @@ export default { created() { this.load(); this.$events.$on("page.changeStatus", this.reload); + this.$events.$on("page.sort", this.reload); }, destroyed() { this.$events.$off("page.changeStatus", this.reload); + this.$events.$off("page.sort", this.reload); }, methods: { create() { @@ -215,6 +217,7 @@ export default { try { await this.$api.pages.status(element.id, "listed", position); + this.$events.$emit("page.sort", element); this.$store.dispatch("notification/success", ":)"); } catch (error) {