Commit 3fba00a13cb4e47a2e83e4faa49e5cf2354aa799

Authored by Chantsova Ekaterina
1 parent 85910d8d

UI: Fix displaying static widget configuration tabs, when advanced settings configuration is empty

... ... @@ -15,9 +15,8 @@
15 15 limitations under the License.
16 16
17 17 -->
18   -<mat-tab-group [ngClass]="{'tb-headless': (widgetType === widgetTypes.static && !displayAdvanced())}"
19   - class="tb-widget-config tb-absolute-fill" [(selectedIndex)]="selectedTab">
20   - <mat-tab label="{{ 'widget-config.data' | translate }}" [fxShow]="widgetType !== widgetTypes.static">
  18 +<mat-tab-group class="tb-widget-config tb-absolute-fill" [(selectedIndex)]="selectedTab">
  19 + <mat-tab label="{{ 'widget-config.data' | translate }}" *ngIf="widgetType !== widgetTypes.static">
21 20 <div [formGroup]="dataSettings" class="mat-content mat-padding" fxLayout="column" fxLayoutGap="8px">
22 21 <div *ngIf="widgetType === widgetTypes.timeseries || widgetType === widgetTypes.alarm" fxFlex="100"
23 22 fxLayout.xs="column" fxLayoutGap="8px" fxLayoutAlign.xs="center" fxLayout="row" fxLayoutAlign="start center">
... ... @@ -85,7 +84,6 @@
85 84 </div>
86 85 <mat-expansion-panel class="tb-datasources" *ngIf="widgetType !== widgetTypes.rpc &&
87 86 widgetType !== widgetTypes.alarm &&
88   - widgetType !== widgetTypes.static &&
89 87 modelValue?.isDataEnabled" [expanded]="true">
90 88 <mat-expansion-panel-header>
91 89 <mat-panel-title fxLayout="column">
... ...