Feature/allow account for activity of type item (#1641)

* Support linking wealth items to account

* Update changelog
This commit is contained in:
Thomas Kaul
2023-01-30 20:00:07 +01:00
committed by GitHub
parent cfffb99f52
commit 2e7f46ad78
5 changed files with 42 additions and 26 deletions

View File

@@ -18,12 +18,14 @@
</mat-select>
</mat-form-field>
</div>
<div
[ngClass]="{ 'd-none': !activityForm.controls['accountId'].hasValidator(Validators.required) }"
>
<div>
<mat-form-field appearance="outline" class="w-100">
<mat-label i18n>Account</mat-label>
<mat-select formControlName="accountId">
<mat-option
*ngIf="!activityForm.controls['accountId'].hasValidator(Validators.required)"
[value]="null"
></mat-option>
<mat-option *ngFor="let account of data.accounts" [value]="account.id"
>{{ account.name }}</mat-option
>