Browse Source
Merge pull request #4798 from ChantsovaEkaterina/bug/static-widget-config-tabs-invisible
UI: Fix displaying static widget configuration tabs, when advanced settings configuration is empty
pull/4851/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
4 deletions
-
ui-ngx/src/app/modules/home/components/widget/widget-config.component.html
|
|
|
@ -15,9 +15,8 @@ |
|
|
|
limitations under the License. |
|
|
|
|
|
|
|
--> |
|
|
|
<mat-tab-group [ngClass]="{'tb-headless': (widgetType === widgetTypes.static && !displayAdvanced())}" |
|
|
|
class="tb-widget-config tb-absolute-fill" [(selectedIndex)]="selectedTab"> |
|
|
|
<mat-tab label="{{ 'widget-config.data' | translate }}" [fxShow]="widgetType !== widgetTypes.static"> |
|
|
|
<mat-tab-group class="tb-widget-config tb-absolute-fill" [(selectedIndex)]="selectedTab"> |
|
|
|
<mat-tab label="{{ 'widget-config.data' | translate }}" *ngIf="widgetType !== widgetTypes.static"> |
|
|
|
<div [formGroup]="dataSettings" class="mat-content mat-padding" fxLayout="column" fxLayoutGap="8px"> |
|
|
|
<div *ngIf="widgetType === widgetTypes.timeseries || widgetType === widgetTypes.alarm" fxFlex="100" |
|
|
|
fxLayout.xs="column" fxLayoutGap="8px" fxLayoutAlign.xs="center" fxLayout="row" fxLayoutAlign="start center"> |
|
|
|
@ -85,7 +84,6 @@ |
|
|
|
</div> |
|
|
|
<mat-expansion-panel class="tb-datasources" *ngIf="widgetType !== widgetTypes.rpc && |
|
|
|
widgetType !== widgetTypes.alarm && |
|
|
|
widgetType !== widgetTypes.static && |
|
|
|
modelValue?.isDataEnabled" [expanded]="true"> |
|
|
|
<mat-expansion-panel-header> |
|
|
|
<mat-panel-title fxLayout="column"> |
|
|
|
|