mirror of https://git.48k.eu/ogcp
js: add red highlight to slow client link speed in client pills
Add a red inner pill to the link speed value when the speed is lower than 1Gb/s.master
parent
6628d93d86
commit
c5a8c82b35
|
@ -258,11 +258,13 @@ function updatePillStatus(scope, pill) {
|
|||
|
||||
$('[name="link"]', pill).remove()
|
||||
if (link) {
|
||||
let linkClasses = 'class="badge-danger badge-pill"';
|
||||
if (link >= 1000) {
|
||||
link = link / 1000
|
||||
units = 'Gb/s'
|
||||
linkClasses = '';
|
||||
}
|
||||
$(pill).append('<b name="link"><br>' + link + ' ' + units + '</b>');
|
||||
$(pill).append('<div name="link"><b ' + linkClasses + '>' + link + ' ' + units + '</b></div>');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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=12"></script>
|
||||
<script src="{{ url_for('static', filename='js/ogcp.js') }}?v=13"></script>
|
||||
|
||||
<script>
|
||||
// error messages
|
||||
|
|
Loading…
Reference in New Issue