From 3a96688c41b8d785a8725d9df6b62a0e55b06105 Mon Sep 17 00:00:00 2001 From: Volha Mardvilka Date: Thu, 5 Sep 2024 13:03:26 +0000 Subject: [PATCH] 364828484: (fix) [GAR 1.1] change program icon aria-label --- .../device-item/device-item.component.html | 22 +++++++++---------- .../device-item/device-item.component.ts | 5 ++++- 2 files changed, 14 insertions(+), 13 deletions(-) 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}`; } }