+ [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(
{