|
|
@ -1,32 +1,37 @@ |
|
|
|
<div mat-dialog-title>{{ data.rule.name }}</div> |
|
|
|
|
|
|
|
<div class="py-3" mat-dialog-content> |
|
|
|
<mat-form-field |
|
|
|
<div |
|
|
|
appearance="outline" |
|
|
|
class="w-100" |
|
|
|
[ngClass]="{ 'd-none': !data.rule.configuration.thresholdMin }" |
|
|
|
> |
|
|
|
<mat-label i18n>Threshold Min</mat-label> |
|
|
|
<input |
|
|
|
matInput |
|
|
|
<label i18n>Threshold Min</label> |
|
|
|
<mat-slider |
|
|
|
name="thresholdMin" |
|
|
|
type="number" |
|
|
|
[(ngModel)]="data.settings.thresholdMin" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field |
|
|
|
[max]="data.rule.configuration.threshold.max" |
|
|
|
[min]="data.rule.configuration.threshold.min" |
|
|
|
[step]="data.rule.configuration.threshold.step" |
|
|
|
> |
|
|
|
<input matSliderThumb [(ngModel)]="data.settings.thresholdMin" /> |
|
|
|
</mat-slider> |
|
|
|
<mat-label>{{ data.settings.thresholdMin }}</mat-label> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
appearance="outline" |
|
|
|
class="w-100" |
|
|
|
[ngClass]="{ 'd-none': !data.rule.configuration.thresholdMax }" |
|
|
|
> |
|
|
|
<mat-label i18n>Threshold Max</mat-label> |
|
|
|
<input |
|
|
|
matInput |
|
|
|
<mat-slider |
|
|
|
name="thresholdMax" |
|
|
|
type="number" |
|
|
|
[(ngModel)]="data.settings.thresholdMax" |
|
|
|
/> |
|
|
|
</mat-form-field> |
|
|
|
[max]="data.rule.configuration.threshold.max" |
|
|
|
[min]="data.rule.configuration.threshold.min" |
|
|
|
[step]="data.rule.configuration.threshold.step" |
|
|
|
><input matSliderThumb [(ngModel)]="data.settings.thresholdMax" |
|
|
|
/></mat-slider> |
|
|
|
<mat-label>{{ data.settings.thresholdMax }}</mat-label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div align="end" mat-dialog-actions> |
|
|
|