From 758ecc0be985635c5c41a8fcef8a647070cb407f Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Sun, 6 Jun 2021 16:03:06 +0200 Subject: [PATCH] Update page sections on `page.sort` #3399 --- panel/src/components/Sections/PagesSection.vue | 3 +++ 1 file changed, 3 insertions(+) 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) {