Browse Source
Showed Azure Service Bus downlink fields only with a downlink converter (#16801 )
The Downlink connection string and Downlink topic name fields are used only to send downlinks, but were shown for every integration in the collapsed Advanced settings, and stayed there when a downlink converter made them required. They are now shown below the topic and subscription only when a downlink converter is set. Required-field messages of the form end with a period.
pull/16810/merge
Serhii Titenko
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
19 additions and
20 deletions
ui-ngx/src/app/modules/home/components/integration/configuration/azure-services-bus-integration-form/azure-services-bus-integration-form.component.html
ui-ngx/src/assets/locale/locale.constant-en_US.json
@ -29,6 +29,21 @@
}
< / mat-form-field >
< / div >
@if (isSetDownLink) {
< tb-secret-key-input formControlName = "downlinkConnectionString" class = "mat-block flex-1"
required
appearance="outline"
label="{{ 'integration.downlink-connection-string' | translate }}"
requiredText="{{ 'integration.downlink-connection-string-required' | translate }}">
< / tb-secret-key-input >
< mat-form-field appearance = "outline" class = "mat-block" >
< mat-label translate > integration.downlink-topic-name< / mat-label >
< input matInput required formControlName = "downlinkTopicName" >
@if (azureServicesBusIntegrationConfigForm.get('downlinkTopicName').hasError('required')) {
< mat-error translate > integration.downlink-topic-name-required< / mat-error >
}
< / mat-form-field >
}
< ng-container [ ngTemplateOutlet ] = " executeRemotelyTemplate " >
< / ng-container >
@ -40,22 +55,6 @@
< / mat-panel-description >
< / mat-expansion-panel-header >
< ng-template matExpansionPanelContent >
< tb-secret-key-input formControlName = "downlinkConnectionString" class = "mat-block flex-1" appearance = "outline"
[required]="isSetDownLink"
label="{{ 'integration.downlink-connection-string' | translate }}"
requiredText="{{ 'integration.downlink-connection-string-required' | translate }}">
< / tb-secret-key-input >
< mat-form-field appearance = "outline" class = "mat-block" >
< mat-label translate > integration.downlink-topic-name< / mat-label >
< input matInput [ required ] = " isSetDownLink " formControlName = "downlinkTopicName" >
@if (azureServicesBusIntegrationConfigForm.get('downlinkTopicName').hasError('required')) {
< mat-error translate >
integration.downlink-topic-name-required
< / mat-error >
}
< / mat-form-field >
< ng-container [ ngTemplateOutlet ] = " genericAdditionalInfoTemplate " >
< / ng-container >
< / ng-template >
@ -5968,13 +5968,13 @@
"region-eu" : "Europe" ,
"region-in" : "India" ,
"topic-name" : "Topic name" ,
"topic-name-required" : "Topic name is required" ,
"topic-name-required" : "Topic name is required. " ,
"sub-name" : "Subscription name" ,
"sub-name-required" : "Subscription name is required" ,
"sub-name-required" : "Subscription name is required. " ,
"downlink-connection-string" : "Downlink connection string" ,
"downlink-connection-string-required" : "Downlink connection string is required" ,
"downlink-connection-string-required" : "Downlink connection string is required. " ,
"downlink-topic-name" : "Downlink topic name" ,
"downlink-topic-name-required" : "Downlink topic name is required"
"downlink-topic-name-required" : "Downlink topic name is required. "
} ,
"scada" : {
"symbols" : "SCADA symbols" ,