include the device type in the title, if it's non-standard.

This commit is contained in:
Jason Kulatunga
2020-09-19 11:25:19 -06:00
parent 24262f7c8c
commit 67d1c592a5
3 changed files with 14 additions and 1 deletions
@@ -164,6 +164,15 @@ export class DashboardComponent implements OnInit, AfterViewInit, OnDestroy
});
}
deviceTitle(disk){
var title = [`/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(' - ')
}
/**
* Track by function for ngFor loops
*