diff --git a/application/src/main/data/json/demo/dashboards/gateway_list.json b/application/src/main/data/json/demo/dashboards/gateway_list.json index db516811b2..440fd4c6b3 100644 --- a/application/src/main/data/json/demo/dashboards/gateway_list.json +++ b/application/src/main/data/json/demo/dashboards/gateway_list.json @@ -1350,7 +1350,7 @@ "decimals": null, "funcBody": null, "usePostProcessing": true, - "postFuncBody": "if (value.includes(\"RPC\")) {\n return value;\n} else return '';" + "postFuncBody": "if (value.includes(\"RPC\")&&!value.includes(\"GRPC\")) {\n return value;\n} else return '';" } ], "alarmFilterConfig": { @@ -1681,7 +1681,7 @@ "decimals": null, "funcBody": null, "usePostProcessing": true, - "postFuncBody": "if (value.includes(\"RPC\")) {\n return value;\n} else return '';" + "postFuncBody": "if (value.includes(\"RPC\")&&!value.includes(\"GRPC\")) {\n return value;\n} else return '';" } ], "alarmFilterConfig": { diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.html index 51452e2967..cfa03bd97a 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.html @@ -85,7 +85,8 @@
+ name="securityTypeToggle" (valueChange)="updateSecurityValidators($event)" + useSelectOnMdLg="false" ignoreMdLgSize="true"> {{ securityType.value | translate }} @@ -230,7 +231,8 @@
gateway.logs.local
+ [value]="logSelector.value" name="logTypeToggle" (valueChange)="updateLogType($event)" + useSelectOnMdLg="false" ignoreMdLgSize="true"> {{ logConfig.value }} @@ -303,7 +305,8 @@
+ (valueChange)="updateStorageType($event)" + useSelectOnMdLg="false" ignoreMdLgSize="true"> {{ storageType.value | translate }} @@ -315,7 +318,7 @@ gateway.storage-read-record-count - + {{'gateway.storage-read-record-count-required' | translate}} @@ -334,7 +337,7 @@ gateway.storage-max-records - + {{'gateway.storage-max-records-required' | translate}} @@ -366,7 +369,7 @@ gateway.storage-max-files - + {{'gateway.storage-max-files-required' | translate}} @@ -385,7 +388,7 @@ gateway.storage-max-read-record-count - + {{'gateway.storage-max-read-record-count-required' | translate}} @@ -404,7 +407,7 @@ gateway.storage-max-file-records - + {{'gateway.storage-max-records-required' | translate}} @@ -436,7 +439,7 @@ gateway.messages-ttl-check-in-hours - + {{'gateway.messages-ttl-check-in-hours-required' | translate}} @@ -455,7 +458,7 @@ gateway.messages-ttl-in-days - + {{'gateway.messages-ttl-in-days-required' | translate}} diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.ts index 0f8896be01..1b70c6e295 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-configuration.component.ts @@ -347,7 +347,8 @@ export class GatewayConfigurationComponent implements OnInit { } updateStorageType(value: StorageTypes) { - this.gatewayConfigGroup.get('storage.type').setValue(value, {emitEvent: true}) + this.gatewayConfigGroup.get('storage.type').setValue(value, {emitEvent: true}); + this.gatewayConfigGroup.get('storage.type').markAsDirty(); } fetchConfigAttribute(entityId: EntityId) { diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.html index ddcca1b538..e3589f7ac1 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.html @@ -127,7 +127,8 @@ - diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts index 1d7a39ccc5..7b76b8afa7 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts @@ -339,6 +339,12 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie this.connectorForm.markAsPristine(); } + isSameConnector(attribute): boolean { + if (!this.initialConnector) return false; + const connector = typeof attribute.value === 'string' ? JSON.parse(attribute.value) : attribute.value; + return this.initialConnector.name === connector.name; + } + showToast(message: string) { this.store.dispatch(new ActionNotificationShow( {