Skip to content

Commit

Permalink
make sure we include the host id in the temp history label.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed May 21, 2022
1 parent 1bfdd00 commit 3b13796
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/frontend/src/app/data/mock/summary/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const summary = {
"device_protocol": "",
"device_type": "",
"label": "",
"host_id": "",
"host_id": "custom host id",
"device_status": 1
},
"smart": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
}

Expand Down

0 comments on commit 3b13796

Please sign in to comment.