Skip to content

Commit

Permalink
Update page sections on page.sort #3399
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Hoffmann authored and afbora committed Jun 21, 2021
1 parent 2e18815 commit 758ecc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/src/components/Sections/PagesSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 758ecc0

Please # to comment.