Skip to content

Commit

Permalink
Refactor content store #1866
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Hoffmann authored and bastianallgeier committed Oct 14, 2019
1 parent 0b9b039 commit 1125890
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion panel/src/components/Dialogs/FileRenameDialog.vue
Expand Up @@ -84,7 +84,10 @@ export default {
.then(file => {
// move form changes
this.$store.dispatch("content/move", ["files/" + this.file.id, "files/" + file.id]);
this.$store.dispatch("content/move", [
"files/" + this.file.id,
"files/" + file.id
]);
this.$store.dispatch("notification/success", ":)");
this.$emit("success", file);
Expand Down
5 changes: 4 additions & 1 deletion panel/src/components/Dialogs/PageUrlDialog.vue
Expand Up @@ -97,7 +97,10 @@ export default {
.then(page => {
// move form changes
this.$store.dispatch("content/move", ["pages/" + this.page.id, "pages/" + page.id]);
this.$store.dispatch("content/move", [
"pages/" + this.page.id,
"pages/" + page.id
]);
const payload = {
message: ":)",
Expand Down

0 comments on commit 1125890

Please sign in to comment.