Browse Source

UI: Fixed dynamic sources for filters list

pull/12216/head
Artem Dzhereleiko 2 years ago
parent
commit
d2fdcb289c
  1. 4
      ui-ngx/src/app/modules/home/components/filter/filter-predicate-list.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/filter/filter-predicate-value.component.html

4
ui-ngx/src/app/modules/home/components/filter/filter-predicate-list.component.html

@ -40,13 +40,13 @@
</div> </div>
<mat-divider style="padding-bottom: 5px;"></mat-divider> <mat-divider style="padding-bottom: 5px;"></mat-divider>
<div class="predicate-list"> <div class="predicate-list">
<div class="flex flex-row items-stretch justify-start" style="height: 76px;" <div class="flex flex-row items-stretch justify-start" style="height: 100%; min-height: 76px; max-height: 96px;"
formArrayName="predicates" formArrayName="predicates"
*ngFor="let predicateControl of predicatesFormArray.controls; let $index = index"> *ngFor="let predicateControl of predicatesFormArray.controls; let $index = index">
<div class="filters-operation flex max-w-8% flex-full flex-row items-stretch justify-center"> <div class="filters-operation flex max-w-8% flex-full flex-row items-stretch justify-center">
<span *ngIf="$index > 0">{{ complexOperationTranslations.get(operation) | translate }}</span> <span *ngIf="$index > 0">{{ complexOperationTranslations.get(operation) | translate }}</span>
</div> </div>
<div class="flex max-w-92% flex-full flex-col"> <div class="flex max-w-92% flex-full flex-col" style="min-width: 590px">
<div class="flex flex-1 flex-row items-center justify-start gap-2"> <div class="flex flex-1 flex-row items-center justify-start gap-2">
<tb-filter-predicate <tb-filter-predicate
class="flex-1" class="flex-1"

2
ui-ngx/src/app/modules/home/components/filter/filter-predicate-value.component.html

@ -44,7 +44,7 @@
<div class="tb-hint">{{ hintText | translate }}</div> <div class="tb-hint">{{ hintText | translate }}</div>
</div> </div>
<div class="flex flex-col flex-1" [class.!hidden]="!dynamicMode && !onlyUserDynamicSource"> <div class="flex flex-col flex-1" [class.!hidden]="!dynamicMode && !onlyUserDynamicSource">
<div formGroupName="dynamicValue" class="flex flex-row items-center justify-start gap-2"> <div formGroupName="dynamicValue" class="flex flex-row justify-start gap-2">
<div class="flex max-w-35% flex-full flex-col"> <div class="flex max-w-35% flex-full flex-col">
<mat-form-field hideRequiredMarker class="mat-block"> <mat-form-field hideRequiredMarker class="mat-block">
<mat-select formControlName="sourceType" placeholder="{{'filter.dynamic-source-type' | translate}}"> <mat-select formControlName="sourceType" placeholder="{{'filter.dynamic-source-type' | translate}}">

Loading…
Cancel
Save