outlet power status

This commit is contained in:
Paolo Asperti 2022-06-03 12:44:54 +02:00
parent 9a7eef618f
commit 77bdc609b1
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -91,9 +91,10 @@
'info' : true, 'info' : true,
'rowCallback': function( row, data ) { 'rowCallback': function( row, data ) {
if ( data.Status ) { if ( data.Status ) {
$('td:eq(2)', row).html( '<i class="fa fa-toggle-on"></i>' ); $('td:eq(2)', row).html( '<i class="fa fa-bolt"></i>' );
} else { } else {
$('td:eq(2)', row).html( '<i class="fa fa-toggle-off"></i>' ); // $('td:eq(2)', row).html( '<i class="fa fa-close"></i>' );
$('td:eq(2)', row).html( '<i></i>' );
} }
} }
}); });