Skip to content

Commit

Permalink
Kirby 3.7 Compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Waldhauer committed Aug 4, 2022
1 parent 2031c9b commit 97ac5da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/sections/QuickAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@
}
}).then(data => {
if(publish) {
this.$api.pages.status(data.id, 'listed').then( _ => {
this.$router.push({name: 'Page', params: {path: data.id.replace(/\//g, '+')}});
this.$api.pages.changeStatus(data.id, 'listed').then( _ => {
this.$go(`pages/${data.id.replace(/\//g, '+')}`);
});
return;
}
this.$router.push({name: 'Page', params: {path: data.id.replace(/\//g, '+')}});
this.$go(`pages/${data.id.replace(/\//g, '+')}`);
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/sections/QuickAddImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
this.$api.pages.update(this.postPath.replace(/\//g, '+'), {
text: texts.join("\n")
}).then(() => {
this.$router.push({name: 'Page', params: {path: this.postPath.replace(/\//g, '+')}});
this.$go(`pages/${this.postPath.replace(/\//g, '+')}`);
})
})
},
Expand All @@ -56,7 +56,7 @@
this.createShallowPost(firstFile.name).then(data => {
this.postPath = data.id;
this.$refs.uploader.drop(files, {
url: window.panel.api + '/' + this.$api.pages.url(this.postPath, "files"),
url: this.$urls.api + '/' + this.$api.pages.url(this.postPath, "files"),
multiple: true,
})
})
Expand Down

0 comments on commit 97ac5da

Please sign in to comment.