|
|
@ -1,35 +1,40 @@ |
|
|
|
<div mat-dialog-title>{{ data.rule.name }}</div> |
|
|
|
|
|
|
|
<div class="py-3" mat-dialog-content> |
|
|
|
<mat-form-field |
|
|
|
appearance="outline" |
|
|
|
|
|
|
|
<div |
|
|
|
class="w-100" |
|
|
|
[ngClass]="{ 'd-none': settings.thresholdMin === undefined }" |
|
|
|
> |
|
|
|
<mat-label i18n>Threshold Min</mat-label> |
|
|
|
<input |
|
|
|
matInput |
|
|
|
name="thresholdMin" |
|
|
|
type="number" |
|
|
|
[ngClass]="{ 'd-none': settings.thresholdMin === undefined }"> |
|
|
|
<label i18n>Threshold Min</label> |
|
|
|
<mat-slider |
|
|
|
[(ngModel)]="settings.thresholdMin" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field |
|
|
|
appearance="outline" |
|
|
|
[min]="data.rule.configuration.min" |
|
|
|
[max]="data.rule.configuration.max" |
|
|
|
[step]="data.rule.configuration.step" |
|
|
|
thumbLabel |
|
|
|
tickInterval="auto" |
|
|
|
class="w-100" |
|
|
|
></mat-slider> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
class="w-100" |
|
|
|
[ngClass]="{ 'd-none': settings.thresholdMax === undefined }" |
|
|
|
> |
|
|
|
<mat-label i18n>Threshold Max</mat-label> |
|
|
|
<input |
|
|
|
matInput |
|
|
|
name="thresholdMax" |
|
|
|
type="number" |
|
|
|
[ngClass]="{ 'd-none': settings.thresholdMax === undefined }"> |
|
|
|
<label i18n>Threshold Max</label> |
|
|
|
<mat-slider |
|
|
|
[(ngModel)]="settings.thresholdMax" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
[min]="data.rule.configuration.min" |
|
|
|
[max]="data.rule.configuration.max" |
|
|
|
[step]="data.rule.configuration.step" |
|
|
|
thumbLabel |
|
|
|
tickInterval="auto" |
|
|
|
class="w-100" |
|
|
|
></mat-slider> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div align="end" mat-dialog-actions> |
|
|
|
<div mat-dialog-actions fxLayout="row" fxLayoutAlign="end"> |
|
|
|
<button i18n mat-button (click)="dialogRef.close()">Close</button> |
|
|
|
<button color="primary" mat-flat-button (click)="dialogRef.close(settings)"> |
|
|
|
<ng-container i18n>Save</ng-container> |
|
|
|