Browse Source

UI: Remove MQTT v5, MQTT v3.1 options for "Azure IoT Hub" rule node.

pull/13621/head
deaflynx 1 year ago
parent
commit
daafd8b5d3
  1. 4
      ui-ngx/src/app/modules/home/components/rule-node/external/azure-iot-hub-config.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/rule-node/external/azure-iot-hub-config.component.ts

4
ui-ngx/src/app/modules/home/components/rule-node/external/azure-iot-hub-config.component.html

@ -38,7 +38,9 @@
{{ 'rule-node-config.device-id-required' | translate }}
</mat-error>
</mat-form-field>
<tb-mqtt-version-select formControlName="protocolVersion" subscriptSizing="fixed"></tb-mqtt-version-select>
<tb-mqtt-version-select formControlName="protocolVersion" subscriptSizing="fixed"
[excludeVersions]="[MqttVersion.MQTT_3_1, MqttVersion.MQTT_5]">
</tb-mqtt-version-select>
<mat-accordion>
<mat-expansion-panel class="tb-mqtt-credentials-panel-group">
<mat-expansion-panel-header>

2
ui-ngx/src/app/modules/home/components/rule-node/external/azure-iot-hub-config.component.ts

@ -22,6 +22,7 @@ import {
azureIotHubCredentialsTypes,
azureIotHubCredentialsTypeTranslations
} from '@home/components/rule-node/rule-node-config.models';
import { MqttVersion } from '@shared/models/mqtt.models';
@Component({
selector: 'tb-external-node-azure-iot-hub-config',
@ -34,6 +35,7 @@ export class AzureIotHubConfigComponent extends RuleNodeConfigurationComponent {
allAzureIotHubCredentialsTypes = azureIotHubCredentialsTypes;
azureIotHubCredentialsTypeTranslationsMap = azureIotHubCredentialsTypeTranslations;
MqttVersion = MqttVersion;
constructor(private fb: UntypedFormBuilder) {
super();

Loading…
Cancel
Save