Commit 6dbb4897b4816a4aa4733e0745f18dd5cd755a43
1 parent
a99a8e45
UI: Fixed resize width windows device-wizard-dialog; improvement translate en_US
Showing
3 changed files
with
15 additions
and
2 deletions
@@ -82,7 +82,8 @@ | @@ -82,7 +82,8 @@ | ||
82 | [selectFirstProfile]="true" | 82 | [selectFirstProfile]="true" |
83 | [editProfileEnabled]="false"> | 83 | [editProfileEnabled]="false"> |
84 | </tb-device-profile-autocomplete> | 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 | <mat-label translate>device-profile.new-device-profile-name</mat-label> | 87 | <mat-label translate>device-profile.new-device-profile-name</mat-label> |
87 | <input matInput formControlName="newDeviceProfileTitle" | 88 | <input matInput formControlName="newDeviceProfileTitle" |
88 | [required]="createProfile"> | 89 | [required]="createProfile"> |
@@ -93,12 +94,14 @@ | @@ -93,12 +94,14 @@ | ||
93 | </div> | 94 | </div> |
94 | <div fxLayout="column" fxLayoutAlign="flex-end start"> | 95 | <div fxLayout="column" fxLayoutAlign="flex-end start"> |
95 | <tb-rule-chain-autocomplete | 96 | <tb-rule-chain-autocomplete |
97 | + [ngClass]="{invisible: deviceWizardFormGroup.get('addProfileType').value !== 1}" | ||
96 | labelText="device-profile.default-rule-chain" | 98 | labelText="device-profile.default-rule-chain" |
97 | formControlName="defaultRuleChainId"> | 99 | formControlName="defaultRuleChainId"> |
98 | </tb-rule-chain-autocomplete> | 100 | </tb-rule-chain-autocomplete> |
99 | </div> | 101 | </div> |
100 | <div fxLayout="column" fxLayoutAlign="flex-end start"> | 102 | <div fxLayout="column" fxLayoutAlign="flex-end start"> |
101 | <tb-queue-type-list | 103 | <tb-queue-type-list |
104 | + [ngClass]="{invisible: deviceWizardFormGroup.get('addProfileType').value !== 1}" | ||
102 | [queueType]="serviceType" | 105 | [queueType]="serviceType" |
103 | formControlName="defaultQueueName"> | 106 | formControlName="defaultQueueName"> |
104 | </tb-queue-type-list> | 107 | </tb-queue-type-list> |
@@ -22,6 +22,10 @@ | @@ -22,6 +22,10 @@ | ||
22 | max-height: 75vh; | 22 | max-height: 75vh; |
23 | } | 23 | } |
24 | } | 24 | } |
25 | + | ||
26 | + .invisible{ | ||
27 | + visibility: hidden; | ||
28 | + } | ||
25 | } | 29 | } |
26 | 30 | ||
27 | :host ::ng-deep { | 31 | :host ::ng-deep { |
@@ -60,6 +64,12 @@ | @@ -60,6 +64,12 @@ | ||
60 | height: 100%; | 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,7 +874,7 @@ | ||
874 | "profile-configuration": "Profile configuration", | 874 | "profile-configuration": "Profile configuration", |
875 | "transport-configuration": "Transport configuration", | 875 | "transport-configuration": "Transport configuration", |
876 | "default-rule-chain": "Default rule chain", | 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 | "delete-device-profile-title": "Are you sure you want to delete the device profile '{{deviceProfileName}}'?", | 878 | "delete-device-profile-title": "Are you sure you want to delete the device profile '{{deviceProfileName}}'?", |
879 | "delete-device-profile-text": "Be careful, after the confirmation the device profile and all related data will become unrecoverable.", | 879 | "delete-device-profile-text": "Be careful, after the confirmation the device profile and all related data will become unrecoverable.", |
880 | "delete-device-profiles-title": "Are you sure you want to delete { count, plural, 1 {1 device profile} other {# device profiles} }?", | 880 | "delete-device-profiles-title": "Are you sure you want to delete { count, plural, 1 {1 device profile} other {# device profiles} }?", |