Fixed plugins disable switch

environments/review-docs-devel-1399dq/deployments/6607
Ciarán Ainsworth 2020-11-20 23:51:55 +00:00
rodzic 79219fd695
commit 9014c78238
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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)