Thomas Kaul
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
8 deletions
-
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
|
|
@ -33,7 +33,6 @@ import { ImportActivitiesDialogParams } from './import-activities-dialog/interfa |
|
|
|
templateUrl: './activities-page.html' |
|
|
|
}) |
|
|
|
export class ActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
public activities: Activity[]; |
|
|
|
public dataSource: MatTableDataSource<Activity>; |
|
|
|
public deviceType: string; |
|
|
|
public hasImpersonationId: boolean; |
|
|
@ -66,13 +65,7 @@ export class ActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
if (params['createDialog']) { |
|
|
|
this.openCreateActivityDialog(); |
|
|
|
} else if (params['editDialog']) { |
|
|
|
if (this.activities) { |
|
|
|
const activity = this.activities.find(({ id }) => { |
|
|
|
return id === params['activityId']; |
|
|
|
}); |
|
|
|
|
|
|
|
this.openUpdateActivityDialog(activity); |
|
|
|
} else if (this.dataSource) { |
|
|
|
if (this.dataSource && params['activityId']) { |
|
|
|
const activity = this.dataSource.data.find(({ id }) => { |
|
|
|
return id === params['activityId']; |
|
|
|
}); |
|
|
|