diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-04 14:10:17 +0200 |
---|---|---|
committer | lupoDharkael <izhe@hotmail.es> | 2024-07-09 09:52:21 +0200 |
commit | d582beef47b247611e4eeadf7bdca7f69c729335 (patch) | |
tree | aab28221b3ddd6a7a5d30f3a3f5654852d91e98c /ogcp/static/js/ogcp.js | |
parent | bb59eb8a5451097b131856433c0222ab94f5fe3a (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.
Diffstat (limited to 'ogcp/static/js/ogcp.js')
-rw-r--r-- | ogcp/static/js/ogcp.js | 2 |
1 files changed, 1 insertions, 1 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'); |