diff --git a/modules/ui/src/app/components/device-item/device-item.component.html b/modules/ui/src/app/components/device-item/device-item.component.html index bfed0a3d4..b3c3e5591 100644 --- a/modules/ui/src/app/components/device-item/device-item.component.html +++ b/modules/ui/src/app/components/device-item/device-item.component.html @@ -16,12 +16,15 @@ diff --git a/modules/ui/src/app/components/device-item/device-item.component.ts b/modules/ui/src/app/components/device-item/device-item.component.ts index 2a62a5f20..72690210f 100644 --- a/modules/ui/src/app/components/device-item/device-item.component.ts +++ b/modules/ui/src/app/components/device-item/device-item.component.ts @@ -44,6 +44,7 @@ export class DeviceItemComponent { readonly DeviceStatus = DeviceStatus; readonly TestingType = TestingType; readonly ProgramType = ProgramType; + readonly INVALID_DEVICE = 'Outdated'; @Input() device!: Device; @Input() tabIndex = 0; @Input() deviceView!: string; @@ -60,6 +61,8 @@ export class DeviceItemComponent { } get label() { - return `${this.device.manufacturer} ${this.device.model} ${this.device.mac_addr}`; + const deviceStatus = + this.device.status === DeviceStatus.INVALID ? this.INVALID_DEVICE : ''; + return `${this.device.test_pack} ${this.device.manufacturer} ${this.device.model} ${deviceStatus} ${this.device.mac_addr}`; } }