Browse Source
Task/refactor transaction to activity in activities page component (#5596)
* Refactor transaction to activity
pull/5606/head
Thomas Kaul
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
5 deletions
-
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
|
|
@ -305,10 +305,10 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public openUpdateActivityDialog(activity: Activity) { |
|
|
|
public openUpdateActivityDialog(aActivity: Activity) { |
|
|
|
const dialogRef = this.dialog.open(GfCreateOrUpdateActivityDialog, { |
|
|
|
data: { |
|
|
|
activity, |
|
|
|
activity: aActivity, |
|
|
|
accounts: this.user?.accounts, |
|
|
|
user: this.user |
|
|
|
}, |
|
|
@ -319,10 +319,10 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
dialogRef |
|
|
|
.afterClosed() |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe((transaction: UpdateOrderDto | null) => { |
|
|
|
if (transaction) { |
|
|
|
.subscribe((activity: UpdateOrderDto) => { |
|
|
|
if (activity) { |
|
|
|
this.dataService |
|
|
|
.putOrder(transaction) |
|
|
|
.putOrder(activity) |
|
|
|
.pipe(takeUntil(this.unsubscribeSubject)) |
|
|
|
.subscribe({ |
|
|
|
next: () => { |
|
|
|