Fix regression in Update OS display

This commit is contained in:
bergware
2021-05-11 05:23:00 +02:00
parent 2094d0bc86
commit 4c52126392
+2 -2
View File
@@ -84,9 +84,9 @@ function loadlist(id,check) {
var cmd = id.split(':');
var tr = 'tr#'+cmd[0].replace(/[\. _]/g,'');
switch (cmd[1]) {
case 'update':
case 'update' : data = data.replace('green','orange').replace("<?=_('up-to-date')?>","<?=_('Reboot')?>").replace('check','warning');
case 'return' : updateInfo(data); break;
case 'install': list.find(tr).remove(); list.append(data); loadlist(null,1); break;
case 'install': list.find(tr).remove(); list.append(data.replace('green','orange').replace("<?=_('up-to-date')?>","<?=_('Reboot')?>").replace('check','warning')); break;
}
} else {
updateInfo(data);