Commit 9014c782 authored by Ciarán Ainsworth's avatar Ciarán Ainsworth
Browse files

Fixed plugins disable switch

parent 79219fd6
Fixed an issue that prevented disabling plugins
\ No newline at end of file
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
this.isLoading = true this.isLoading = true
this.errors = [] this.errors = []
let url = `plugins/${this.plugin.name}` let url = `plugins/${this.plugin.name}`
let enableUrl = this.enabled ? `${url}/enable` : `${url}/enable` let enableUrl = this.enabled ? `${url}/enable` : `${url}/disable`
await axios.post(enableUrl) await axios.post(enableUrl)
try { try {
await axios.post(url, this.values) await axios.post(url, this.values)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment