diff --git a/client/pages/config/plugins/_slug.vue b/client/pages/config/plugins/_id.vue similarity index 95% rename from client/pages/config/plugins/_slug.vue rename to client/pages/config/plugins/_id.vue index 619b6608..3f7d84b7 100644 --- a/client/pages/config/plugins/_slug.vue +++ b/client/pages/config/plugins/_id.vue @@ -42,7 +42,7 @@ export default { if (!store.getters['user/getIsAdminOrUp']) { redirect('/') } - const plugin = store.state.plugins.find((plugin) => plugin.slug === params.slug) + const plugin = store.state.plugins.find((plugin) => plugin.id === params.id) if (!plugin) { redirect('/config/plugins') } @@ -95,14 +95,13 @@ export default { console.log('Form data', formData) const payload = { - pluginSlug: this.plugin.slug, config: formData } this.processing = true this.$axios - .$post(`/api/plugins/config`, payload) + .$post(`/api/plugins/${this.plugin.id}/config`, payload) .then(() => { console.log('Plugin configuration saved') }) diff --git a/client/pages/config/plugins/index.vue b/client/pages/config/plugins/index.vue index d9244744..925248f9 100644 --- a/client/pages/config/plugins/index.vue +++ b/client/pages/config/plugins/index.vue @@ -11,7 +11,7 @@

Installed Plugins