diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector-templates.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector-templates.component.html
index 9a8a0b4152..d161f402dd 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector-templates.component.html
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector-templates.component.html
@@ -50,7 +50,7 @@
{{ config.value }}
- {{ 'gateway.rpc.' + SNMPMethodsTitles[config.value] | translate }}
+ {{ SNMPMethodsTranslations.get(config.value) | translate }}
0;
public readonly isObject = (value: any) => isLiteralObject(value);
- public readonly SNMPMethodsTitles = SNMPMethodsTitles;
+ public readonly SNMPMethodsTranslations = SNMPMethodsTranslations;
constructor(private attributeService: AttributeService) {
}
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-widget.models.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-widget.models.ts
index af349aa99e..3c02deb49b 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-widget.models.ts
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-widget.models.ts
@@ -261,18 +261,6 @@ export enum SNMPMethods {
WALKS = "walk"
}
-export enum SNMPMethodsTitles {
- set = 'set',
- multiset = "multiset",
- get = "get",
- bulkwalk = "bulk-walk",
- table = "table",
- multiget = "multi-get",
- getnext = "get-next",
- bulkget = "bulk-get",
- walk = "walk"
-}
-
export const SNMPMethodsTranslations = new Map([
[SNMPMethods.SET, 'gateway.rpc.set'],
[SNMPMethods.MULTISET, 'gateway.rpc.multiset'],