[BUGFIX] Show available firmware information
This commit is contained in:
parent
9aff29a634
commit
a5d4140bda
@ -27,14 +27,12 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'moment', 'helper'],
|
||||
}
|
||||
|
||||
function showFirmware(d) {
|
||||
var release = helper.dictGet(d.nodeinfo, ['software', 'firmware', 'release']);
|
||||
var base = helper.dictGet(d.nodeinfo, ['software', 'firmware', 'base']);
|
||||
|
||||
if (release === null || base === null) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return release + ' / ' + base;
|
||||
return [
|
||||
helper.dictGet(d.nodeinfo, ['software', 'firmware', 'release']),
|
||||
helper.dictGet(d.nodeinfo, ['software', 'firmware', 'base'])
|
||||
].filter(function (n) {
|
||||
return n !== null;
|
||||
}).join(' / ') || undefined;
|
||||
}
|
||||
|
||||
function showSite(d, config) {
|
||||
|
Loading…
Reference in New Issue
Block a user