From 9014c78238c39a62a0685725c1de1bbf6afc4f4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= <cda@rootkey.co.uk>
Date: Fri, 20 Nov 2020 23:51:55 +0000
Subject: [PATCH] Fixed plugins disable switch

---
 changes/changelog.d/plugins.bugfix   | 1 +
 front/src/components/auth/Plugin.vue | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 changes/changelog.d/plugins.bugfix

diff --git a/changes/changelog.d/plugins.bugfix b/changes/changelog.d/plugins.bugfix
new file mode 100644
index 0000000000..896a829356
--- /dev/null
+++ b/changes/changelog.d/plugins.bugfix
@@ -0,0 +1 @@
+Fixed an issue that prevented disabling plugins
\ No newline at end of file
diff --git a/front/src/components/auth/Plugin.vue b/front/src/components/auth/Plugin.vue
index ea5394b665..7c679062c6 100644
--- a/front/src/components/auth/Plugin.vue
+++ b/front/src/components/auth/Plugin.vue
@@ -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)
-- 
GitLab