Merge pull request #3805 from vvlladd28/improvement/mac/filter
UI: Fixed show in Safari browser dashboard filter
This commit is contained in:
commit
8519f0a9f1
@ -27,10 +27,10 @@
|
||||
</mat-toolbar>
|
||||
<div mat-dialog-content>
|
||||
<fieldset [disabled]="isLoading$ | async" fxLayout="column">
|
||||
<mat-checkbox fxFlex formControlName="editable" style="margin-bottom: 16px;">
|
||||
<mat-checkbox formControlName="editable" style="margin-bottom: 16px;">
|
||||
{{ 'filter.editable' | translate }}
|
||||
</mat-checkbox>
|
||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px">
|
||||
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="8px">
|
||||
<mat-form-field fxFlex class="mat-block">
|
||||
<mat-label translate>filter.display-label</mat-label>
|
||||
<input matInput formControlName="label">
|
||||
@ -39,7 +39,7 @@
|
||||
{{ 'filter.autogenerated-label' | translate }}
|
||||
</mat-checkbox>
|
||||
</div>
|
||||
<mat-form-field fxFlex class="mat-block">
|
||||
<mat-form-field class="mat-block">
|
||||
<mat-label translate>filter.order-priority</mat-label>
|
||||
<input matInput type="number" formControlName="order">
|
||||
</mat-form-field>
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
|
||||
-->
|
||||
<div fxLayout="column" class="mat-content mat-padding">
|
||||
<div fxLayout="column" *ngFor="let filter of filtersInfo | keyvalue; let last = last">
|
||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center">
|
||||
<div *ngFor="let filter of filtersInfo | keyvalue; let last = last">
|
||||
<div fxLayout="row" fxLayoutAlign="start center">
|
||||
<mat-label fxFlex>{{filter.value.filter}}</mat-label>
|
||||
<button mat-icon-button color="primary"
|
||||
style="min-width: 40px;"
|
||||
|
||||
@ -29,37 +29,33 @@
|
||||
</mat-progress-bar>
|
||||
<div mat-dialog-content>
|
||||
<fieldset [disabled]="isLoading$ | async">
|
||||
<div fxFlex fxLayout="column">
|
||||
<div fxFlex fxLayout="row" fxLayoutAlign="start center"
|
||||
formArrayName="userInputs"
|
||||
*ngFor="let userInputControl of userInputsFormArray().controls; let $index = index">
|
||||
<div fxFlex fxLayout="column"
|
||||
[ngSwitch]="userInputControl.get('valueType').value">
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.STRING">
|
||||
<mat-form-field fxFlex class="mat-block">
|
||||
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
||||
<input matInput [formControl]="userInputControl.get('value')">
|
||||
</mat-form-field>
|
||||
</ng-template>
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.NUMERIC">
|
||||
<mat-form-field fxFlex class="mat-block">
|
||||
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
||||
<input required type="number" matInput [formControl]="userInputControl.get('value')">
|
||||
</mat-form-field>
|
||||
</ng-template>
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.DATE_TIME">
|
||||
<label class="tb-title no-padding tb-required">{{ userInputControl.get('label').value }}</label>
|
||||
<tb-datetime fxFlex [formControl]="userInputControl.get('value')"
|
||||
dateText="filter.date"
|
||||
timeText="filter.time"
|
||||
required [showLabel]="false"></tb-datetime>
|
||||
</ng-template>
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.BOOLEAN">
|
||||
<mat-checkbox labelPosition="before" fxFlex [formControl]="userInputControl.get('value')">
|
||||
{{ userInputControl.get('label').value }}
|
||||
</mat-checkbox>
|
||||
</ng-template>
|
||||
</div>
|
||||
<div formArrayName="userInputs"
|
||||
*ngFor="let userInputControl of userInputsFormArray().controls; let $index = index">
|
||||
<div [ngSwitch]="userInputControl.get('valueType').value">
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.STRING">
|
||||
<mat-form-field class="mat-block">
|
||||
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
||||
<input matInput [formControl]="userInputControl.get('value')">
|
||||
</mat-form-field>
|
||||
</ng-template>
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.NUMERIC">
|
||||
<mat-form-field class="mat-block">
|
||||
<mat-label>{{ userInputControl.get('label').value }}</mat-label>
|
||||
<input required type="number" matInput [formControl]="userInputControl.get('value')">
|
||||
</mat-form-field>
|
||||
</ng-template>
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.DATE_TIME">
|
||||
<label class="tb-title no-padding tb-required">{{ userInputControl.get('label').value }}</label>
|
||||
<tb-datetime [formControl]="userInputControl.get('value')"
|
||||
dateText="filter.date"
|
||||
timeText="filter.time"
|
||||
required [showLabel]="false"></tb-datetime>
|
||||
</ng-template>
|
||||
<ng-template [ngSwitchCase]="valueTypeEnum.BOOLEAN">
|
||||
<mat-checkbox labelPosition="before" [formControl]="userInputControl.get('value')">
|
||||
{{ userInputControl.get('label').value }}
|
||||
</mat-checkbox>
|
||||
</ng-template>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user