diff --git a/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.html b/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.html
index f73e7a30a1..14c6e53546 100644
--- a/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.html
+++ b/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.html
@@ -21,7 +21,7 @@
@for (type of deviceProvisionTypes; track type) {
- {{ getDeviceProvisionType(type) | translate }}
+ {{deviceProvisionTypeTranslateMap.get(type) | translate}}
}
@@ -31,10 +31,10 @@
@switch (provisionConfigurationFormGroup.get('type').value) {
@case (deviceProvisionType.ALLOW_CREATE_NEW_DEVICES) {
-
+
}
@case (deviceProvisionType.CHECK_PRE_PROVISIONED_DEVICES) {
-
+
}
@case (deviceProvisionType.X509_CERTIFICATE_CHAIN) {
@@ -71,38 +71,38 @@
}
}
+
+
+
-
-
-
diff --git a/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.ts b/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.ts
index 4065dc602d..05aef4cfbb 100644
--- a/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.ts
+++ b/ui-ngx/src/app/modules/home/components/profile/device-profile-provision-configuration.component.ts
@@ -62,7 +62,7 @@ export class DeviceProfileProvisionConfigurationComponent implements ControlValu
provisionConfigurationFormGroup: UntypedFormGroup;
deviceProvisionType = DeviceProvisionType;
- deviceProvisionTypes = Object.keys(DeviceProvisionType);
+ deviceProvisionTypes = Object.values(DeviceProvisionType);
deviceProvisionTypeTranslateMap = deviceProvisionTypeTranslationMap;
private requiredValue: boolean;
@@ -213,8 +213,4 @@ export class DeviceProfileProvisionConfigurationComponent implements ControlValu
this.provisionConfigurationFormGroup.get('provisionDeviceKey').reset({value: null, disabled: true}, {emitEvent: false});
}
}
-
- getDeviceProvisionType(type: string): string {
- return this.deviceProvisionTypeTranslateMap.get(type as DeviceProvisionType);
- }
}
diff --git a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.html b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.html
index e2ac4da12b..1ad031c3a9 100644
--- a/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.html
+++ b/ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-attributes-key-list.component.html
@@ -25,7 +25,7 @@
}
- device-profile.lwm2m.no-attributes-set
+ device-profile.lwm2m.no-attributes-set
@if (!disabled && isAddEnabled) {