make sure we include the host id in the temp history label.
This commit is contained in:
@@ -138,7 +138,7 @@ export const summary = {
|
||||
"device_protocol": "",
|
||||
"device_type": "",
|
||||
"label": "",
|
||||
"host_id": "",
|
||||
"host_id": "custom host id",
|
||||
"device_status": 1
|
||||
},
|
||||
"smart": {
|
||||
|
||||
@@ -91,8 +91,14 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
if (!deviceSummary.temp_history){
|
||||
continue
|
||||
}
|
||||
|
||||
let deviceName = `/dev/${deviceSummary.device.device_name}`
|
||||
if(deviceSummary.device.host_id){
|
||||
deviceName = `${deviceSummary.device.host_id} - ${deviceName}`
|
||||
}
|
||||
|
||||
var deviceSeriesMetadata = {
|
||||
name: `/dev/${deviceSummary.device.device_name}`,
|
||||
name: deviceName,
|
||||
data: []
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user