summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/BackendModuleTable.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/BackendModuleTable.vue')
-rw-r--r--webapp/src/components/BackendModuleTable.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/components/BackendModuleTable.vue b/webapp/src/components/BackendModuleTable.vue
index 2ca15b3..a0e59e4 100644
--- a/webapp/src/components/BackendModuleTable.vue
+++ b/webapp/src/components/BackendModuleTable.vue
@@ -104,15 +104,15 @@ export default {
// Set to start the loading animation.
item.loading = true
// Test the credential connection.
- this.$http('/api/backends/checkConnection?id=' + this.backendId, {
+ this.$http('/api/backends/checkConnection?id=' + item.id, {
headers: {
'Cache-Control': 'no-cache'
}
}).then(response => {
- if (response.data.status === 'success') {
+ if (response.data.success) {
// Set the button color to green if success.
item.connection = 'success'
- } else if (response.data.status === 'error') {
+ } else {
// Set the button color to red if error.
item.connection = 'error'
this.$store.commit('newSnackbar', response.data.msg)