1
0
mirror of https://github.com/mbirth/tcl_update_db.git synced 2024-09-19 16:53:25 +01:00

Show update info from OTAs if there's no info for FULL.

This commit is contained in:
Markus Birth 2018-08-09 18:14:08 +02:00
parent dbef575009
commit a4d16906f2

View File

@ -58,6 +58,10 @@ document.addEventListener 'DOMContentLoaded', (event) ->
fromList = fromList[0..2]
fromListText = (fromList.join ', ') + " + #{fromMore} more"
otaInfo = "✔️ (from #{fromListText})"
for v in vermeta['OTA']
if v['note']['en'] and updateText is ''
updateText = '(' + v['fv'] + ' to ' + v['tv'] + ') '
updateText += v['note']['en'].replace /\n/g, '<br/>'
else
otaInfo = ""