Fixes #4914: Fix toggling cable status under device view

This commit is contained in:
Jeremy Stretch
2020-07-28 12:54:21 -04:00
parent a206b422fb
commit d1a505d07f
3 changed files with 7 additions and 4 deletions

View File

@@ -975,7 +975,7 @@ function toggleConnection(elem) {
xhr.setRequestHeader("X-CSRFToken", "{{ csrf_token }}");
},
data: {
'status': 'False'
'status': 'planned'
},
context: this,
success: function() {
@@ -994,7 +994,7 @@ function toggleConnection(elem) {
xhr.setRequestHeader("X-CSRFToken", "{{ csrf_token }}");
},
data: {
'status': 'True'
'status': 'connected'
},
context: this,
success: function() {