summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-04 14:10:17 +0200
committerlupoDharkael <izhe@hotmail.es>2024-07-09 09:52:21 +0200
commitd582beef47b247611e4eeadf7bdca7f69c729335 (patch)
treeaab28221b3ddd6a7a5d30f3a3f5654852d91e98c
parentbb59eb8a5451097b131856433c0222ab94f5fe3a (diff)
ogcp: fix client pill status report
Prevent cases where the client pills would stay locked reporting a specific system. Remove pill-* classes instead of text-* classes in function updatePillStatus(). This fixes out-of-sync state representation between sidebar and main section.
-rw-r--r--ogcp/static/js/ogcp.js2
-rw-r--r--ogcp/templates/base.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index 4d69fb6..83fe52d 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -225,7 +225,7 @@ function updatePillStatus(scope, pill) {
let link = scope.link
let units = 'Mb/s'
const pillCls = ['badge-danger', 'badge-success', 'badge-warning',
- 'badge-wol', 'badge-light', 'text-linux', 'text-windows'];
+ 'badge-wol', 'badge-light', 'badge-linux', 'badge-windows'];
pill.classList.remove(...pillCls);
if (state === 'OPG') {
pill.classList.add('badge-warning');
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 902b021..7be19b4 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -108,7 +108,7 @@
<!-- ChartJS -->
<script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script>
- <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=9"></script>
+ <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=10"></script>
<script>
// error messages