mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
35 changed files with 227 additions and 105 deletions
@ -1,23 +1,37 @@ |
|||
<div mat-dialog-title>{{ data.rule.name }}</div> |
|||
|
|||
<div class="py-3" mat-dialog-content> |
|||
<mat-form-field appearance="outline" class="w-100"> |
|||
<mat-form-field |
|||
appearance="outline" |
|||
class="w-100" |
|||
[ngClass]="{ 'd-none': settings.thresholdMin === undefined }" |
|||
> |
|||
<mat-label i18n>Threshold Min</mat-label> |
|||
<input matInput name="thresholdMin" type="number" /> |
|||
<input |
|||
matInput |
|||
name="thresholdMin" |
|||
type="number" |
|||
[(ngModel)]="settings.thresholdMin" |
|||
/> |
|||
</mat-form-field> |
|||
<mat-form-field appearance="outline" class="w-100"> |
|||
<mat-form-field |
|||
appearance="outline" |
|||
class="w-100" |
|||
[ngClass]="{ 'd-none': settings.thresholdMax === undefined }" |
|||
> |
|||
<mat-label i18n>Threshold Max</mat-label> |
|||
<input matInput name="thresholdMax" type="number" /> |
|||
<input |
|||
matInput |
|||
name="thresholdMax" |
|||
type="number" |
|||
[(ngModel)]="settings.thresholdMax" |
|||
/> |
|||
</mat-form-field> |
|||
</div> |
|||
|
|||
<div align="end" mat-dialog-actions> |
|||
<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(settings)"> |
|||
<ng-container i18n>Save</ng-container> |
|||
</button> |
|||
</div> |
|||
|
Loading…
Reference in new issue