|
@ -4,34 +4,38 @@ |
|
|
<mat-form-field |
|
|
<mat-form-field |
|
|
appearance="outline" |
|
|
appearance="outline" |
|
|
class="w-100" |
|
|
class="w-100" |
|
|
[ngClass]="{ 'd-none': settings.thresholdMin === undefined }" |
|
|
[ngClass]="{ 'd-none': !data.rule.configuration.thresholdMin }" |
|
|
> |
|
|
> |
|
|
<mat-label i18n>Threshold Min</mat-label> |
|
|
<mat-label i18n>Threshold Min</mat-label> |
|
|
<input |
|
|
<input |
|
|
matInput |
|
|
matInput |
|
|
name="thresholdMin" |
|
|
name="thresholdMin" |
|
|
type="number" |
|
|
type="number" |
|
|
[(ngModel)]="settings.thresholdMin" |
|
|
[(ngModel)]="data.settings.thresholdMin" |
|
|
/> |
|
|
/> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
<mat-form-field |
|
|
<mat-form-field |
|
|
appearance="outline" |
|
|
appearance="outline" |
|
|
class="w-100" |
|
|
class="w-100" |
|
|
[ngClass]="{ 'd-none': settings.thresholdMax === undefined }" |
|
|
[ngClass]="{ 'd-none': !data.rule.configuration.thresholdMax }" |
|
|
> |
|
|
> |
|
|
<mat-label i18n>Threshold Max</mat-label> |
|
|
<mat-label i18n>Threshold Max</mat-label> |
|
|
<input |
|
|
<input |
|
|
matInput |
|
|
matInput |
|
|
name="thresholdMax" |
|
|
name="thresholdMax" |
|
|
type="number" |
|
|
type="number" |
|
|
[(ngModel)]="settings.thresholdMax" |
|
|
[(ngModel)]="data.settings.thresholdMax" |
|
|
/> |
|
|
/> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div align="end" mat-dialog-actions> |
|
|
<div align="end" mat-dialog-actions> |
|
|
<button i18n mat-button (click)="dialogRef.close()">Close</button> |
|
|
<button i18n mat-button (click)="dialogRef.close()">Close</button> |
|
|
<button color="primary" mat-flat-button (click)="dialogRef.close(settings)"> |
|
|
<button |
|
|
|
|
|
color="primary" |
|
|
|
|
|
mat-flat-button |
|
|
|
|
|
(click)="dialogRef.close(data.settings)" |
|
|
|
|
|
> |
|
|
<ng-container i18n>Save</ng-container> |
|
|
<ng-container i18n>Save</ng-container> |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|