File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1410,6 +1410,7 @@ function refreshGridDevices() {
1410
1410
if ( listDevices [ i ] . RF_ADDRESS ) {
1411
1411
listDevices [ i ] . RF_ADDRESS = parseInt ( listDevices [ i ] . RF_ADDRESS , 10 ) . toString ( 16 ) ;
1412
1412
}
1413
+ let updatePending = false ;
1413
1414
1414
1415
if ( daemon === 'BidCos-RF' || daemon === 'HmIP' ) {
1415
1416
const msgs = [ ] ;
@@ -1441,6 +1442,9 @@ function refreshGridDevices() {
1441
1442
case 'CONFIG_PENDING' :
1442
1443
msgs . push ( '<img title="CONFIG_PENDING" style="height: 12px; padding-top: 3px;" src="images/servicemsgs/config_pending.png">' ) ;
1443
1444
break ;
1445
+ case 'UPDATE_PENDING' :
1446
+ updatePending = true ;
1447
+ break ;
1444
1448
default :
1445
1449
}
1446
1450
}
@@ -1463,6 +1467,8 @@ function refreshGridDevices() {
1463
1467
break ;
1464
1468
default :
1465
1469
}
1470
+ } else if ( updatePending ) {
1471
+ listDevices [ i ] . FIRMWARE += ' <span class="firmware-status">update pending</span>' ;
1466
1472
} else if ( listDevices [ i ] . AVAILABLE_FIRMWARE && listDevices [ i ] . AVAILABLE_FIRMWARE !== listDevices [ i ] . FIRMWARE ) {
1467
1473
listDevices [ i ] . FIRMWARE += ' <button class="update-firmware device-table" data-address="' + listDevices [ i ] . ADDRESS + '" id="update-firmware_' + listDevices [ i ] . ADDRESS + '">install ' + listDevices [ i ] . AVAILABLE_FIRMWARE + '</button>' ;
1468
1474
} else if ( listDevices [ i ] . UPDATABLE ) {
@@ -4043,6 +4049,9 @@ function getServiceMessages() {
4043
4049
case 'CONFIG_PENDING' :
4044
4050
msg = ( '<img title="CONFIG_PENDING" style="height: 12px; padding-top: 3px;" src="images/servicemsgs/config_pending.png">' ) ;
4045
4051
break ;
4052
+ case 'UPDATE_PENDING' :
4053
+ rowData . FIRMWARE = rowData . FIRMWARE . split ( ' ' ) [ 0 ] + '<span class="firmware-status">update pending</span>' ;
4054
+ break ;
4046
4055
default :
4047
4056
}
4048
4057
if ( ! rowData . msgs ) {
You can’t perform that action at this time.
0 commit comments