Show Host ID

This commit is contained in:
Ricardo Gonzalez
2020-10-18 00:11:30 +01:00
parent 77971edf5f
commit 13d3d9f64e
5 changed files with 17 additions and 2 deletions
@@ -166,11 +166,18 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy
}
deviceTitle(disk){
var title = [`/dev/${disk.device_name}`]
let title = []
if (disk.host_id) title.push(disk.host_id)
title.push(`/dev/${disk.device_name}`)
if (disk.device_type && disk.device_type != 'scsi' && disk.device_type != 'ata'){
title.push(disk.device_type)
}
title.push(disk.model_name)
return title.join(' - ')
}