mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
* Add business logic of rule settings * Update changelog --------- Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>pull/3829/head^2
Shaunak Das
4 months ago
committed by
GitHub
14 changed files with 63 additions and 45 deletions
@ -1,23 +1,37 @@ |
|||||
<div mat-dialog-title>{{ data.rule.name }}</div> |
<div mat-dialog-title>{{ data.rule.name }}</div> |
||||
|
|
||||
<div class="py-3" mat-dialog-content> |
<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> |
<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> |
||||
<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> |
<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> |
</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 |
<button color="primary" mat-flat-button (click)="dialogRef.close(settings)"> |
||||
color="primary" |
|
||||
mat-flat-button |
|
||||
(click)="dialogRef.close({ settings })" |
|
||||
> |
|
||||
<ng-container i18n>Save</ng-container> |
<ng-container i18n>Save</ng-container> |
||||
</button> |
</button> |
||||
</div> |
</div> |
||||
|
Loading…
Reference in new issue