Browse Source

Fixed label autocomplete dropdown in rule node link dialog (#16360)

* Fixed label autocomplete dropdown in rule node link dialog

* License headers fix
pull/16364/head
Maksym Tsymbarov 2 months ago
committed by GitHub
parent
commit
fe5d1c94a7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-link-dialog.component.scss
  2. 6
      ui-ngx/src/app/modules/home/pages/rulechain/link-labels.component.html
  3. 1
      ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts

9
ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-link-dialog.component.scss

@ -1,9 +0,0 @@
// SPDX-FileCopyrightText: Copyright The ThingsBoard Authors
// SPDX-License-Identifier: Apache-2.0
:host ::ng-deep {
tb-rule-node-link {
form {
overflow: hidden !important;
}
}
}

6
ui-ngx/src/app/modules/home/pages/rulechain/link-labels.component.html

@ -1,7 +1,8 @@
<!--
SPDX-FileCopyrightText: Copyright The ThingsBoard Authors
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc.
SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1
-->
<mat-form-field [formGroup]="linksFormGroup" style="width: 100%;" appearance="outline">
@ -22,9 +23,6 @@
#labelInput
(focusin)="onFocus()"
formControlName="label"
matAutocompleteOrigin
#origin="matAutocompleteOrigin"
[matAutocompleteConnectedTo]="origin"
[matAutocomplete]="labelAutocomplete"
[matChipInputFor]="chipList"
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"

1
ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts

@ -1989,7 +1989,6 @@ export interface AddRuleNodeLinkDialogData {
selector: 'tb-add-rule-node-link-dialog',
templateUrl: './add-rule-node-link-dialog.component.html',
providers: [{ provide: ErrorStateMatcher, useExisting: AddRuleNodeLinkDialogComponent }],
styleUrls: ['./add-rule-node-link-dialog.component.scss'],
standalone: false
})
export class AddRuleNodeLinkDialogComponent extends DialogComponent<AddRuleNodeLinkDialogComponent, FcRuleEdge>

Loading…
Cancel
Save