Merge branch 'fix-disable-plugins' into 'develop'

Fix disabling plugins

See merge request funkwhale/funkwhale!1240
This commit is contained in:
Ciarán Ainsworth 2020-11-21 00:57:03 +01:00
commit add226ba44
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fixed an issue that prevented disabling plugins

View File

@ -91,7 +91,7 @@ export default {
this.isLoading = true
this.errors = []
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)
try {
await axios.post(url, this.values)