[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) {
|
function showFirmware(d) {
|
||||||
var release = helper.dictGet(d.nodeinfo, ['software', 'firmware', 'release']);
|
return [
|
||||||
var base = helper.dictGet(d.nodeinfo, ['software', 'firmware', 'base']);
|
helper.dictGet(d.nodeinfo, ['software', 'firmware', 'release']),
|
||||||
|
helper.dictGet(d.nodeinfo, ['software', 'firmware', 'base'])
|
||||||
if (release === null || base === null) {
|
].filter(function (n) {
|
||||||
return undefined;
|
return n !== null;
|
||||||
}
|
}).join(' / ') || undefined;
|
||||||
|
|
||||||
return release + ' / ' + base;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function showSite(d, config) {
|
function showSite(d, config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user