Commit 6dbb4897b4816a4aa4733e0745f18dd5cd755a43

Authored by Vladyslav_Prykhodko
1 parent a99a8e45

UI: Fixed resize width windows device-wizard-dialog; improvement translate en_US

... ... @@ -82,7 +82,8 @@
82 82 [selectFirstProfile]="true"
83 83 [editProfileEnabled]="false">
84 84 </tb-device-profile-autocomplete>
85   - <mat-form-field fxFlex class="mat-block">
  85 + <mat-form-field fxFlex class="mat-block"
  86 + [ngClass]="{invisible: deviceWizardFormGroup.get('addProfileType').value !== 1}">
86 87 <mat-label translate>device-profile.new-device-profile-name</mat-label>
87 88 <input matInput formControlName="newDeviceProfileTitle"
88 89 [required]="createProfile">
... ... @@ -93,12 +94,14 @@
93 94 </div>
94 95 <div fxLayout="column" fxLayoutAlign="flex-end start">
95 96 <tb-rule-chain-autocomplete
  97 + [ngClass]="{invisible: deviceWizardFormGroup.get('addProfileType').value !== 1}"
96 98 labelText="device-profile.default-rule-chain"
97 99 formControlName="defaultRuleChainId">
98 100 </tb-rule-chain-autocomplete>
99 101 </div>
100 102 <div fxLayout="column" fxLayoutAlign="flex-end start">
101 103 <tb-queue-type-list
  104 + [ngClass]="{invisible: deviceWizardFormGroup.get('addProfileType').value !== 1}"
102 105 [queueType]="serviceType"
103 106 formControlName="defaultQueueName">
104 107 </tb-queue-type-list>
... ...
... ... @@ -22,6 +22,10 @@
22 22 max-height: 75vh;
23 23 }
24 24 }
  25 +
  26 + .invisible{
  27 + visibility: hidden;
  28 + }
25 29 }
26 30
27 31 :host ::ng-deep {
... ... @@ -60,6 +64,12 @@
60 64 height: 100%;
61 65 }
62 66 }
  67 +
  68 + tb-device-profile-autocomplete, tb-queue-type-list{
  69 + .mat-form-field-wrapper{
  70 + width: 180px !important;
  71 + }
  72 + }
63 73 }
64 74 }
65 75 }
... ...
... ... @@ -874,7 +874,7 @@
874 874 "profile-configuration": "Profile configuration",
875 875 "transport-configuration": "Transport configuration",
876 876 "default-rule-chain": "Default rule chain",
877   - "select-queue-hint": "The queue name can be selected from a drop-down list or add a custom name.",
  877 + "select-queue-hint": "Select from a drop-down list or add a custom name.",
878 878 "delete-device-profile-title": "Are you sure you want to delete the device profile '{{deviceProfileName}}'?",
879 879 "delete-device-profile-text": "Be careful, after the confirmation the device profile and all related data will become unrecoverable.",
880 880 "delete-device-profiles-title": "Are you sure you want to delete { count, plural, 1 {1 device profile} other {# device profiles} }?",
... ...