|
|
@ -27,7 +27,7 @@ import { DeviceDetectorService } from 'ngx-device-detector'; |
|
|
|
import { Subject, Subscription } from 'rxjs'; |
|
|
|
import { takeUntil } from 'rxjs/operators'; |
|
|
|
|
|
|
|
import { GfCreateOrUpdateActivityDialog } from './create-or-update-activity-dialog/create-or-update-activity-dialog.component'; |
|
|
|
import { GfCreateOrUpdateActivityDialogComponent } from './create-or-update-activity-dialog/create-or-update-activity-dialog.component'; |
|
|
|
import { GfImportActivitiesDialogComponent } from './import-activities-dialog/import-activities-dialog.component'; |
|
|
|
import { ImportActivitiesDialogParams } from './import-activities-dialog/interfaces/interfaces'; |
|
|
|
|
|
|
@ -306,7 +306,9 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
public openUpdateActivityDialog(aActivity: Activity) { |
|
|
|
const dialogRef = this.dialog.open(GfCreateOrUpdateActivityDialog, { |
|
|
|
const dialogRef = this.dialog.open( |
|
|
|
GfCreateOrUpdateActivityDialogComponent, |
|
|
|
{ |
|
|
|
data: { |
|
|
|
activity: aActivity, |
|
|
|
accounts: this.user?.accounts, |
|
|
@ -314,7 +316,8 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
}, |
|
|
|
height: this.deviceType === 'mobile' ? '98vh' : '80vh', |
|
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
|
}); |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
dialogRef |
|
|
|
.afterClosed() |
|
|
@ -347,7 +350,9 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
.subscribe((user) => { |
|
|
|
this.updateUser(user); |
|
|
|
|
|
|
|
const dialogRef = this.dialog.open(GfCreateOrUpdateActivityDialog, { |
|
|
|
const dialogRef = this.dialog.open( |
|
|
|
GfCreateOrUpdateActivityDialogComponent, |
|
|
|
{ |
|
|
|
data: { |
|
|
|
accounts: this.user?.accounts, |
|
|
|
activity: { |
|
|
@ -363,7 +368,8 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { |
|
|
|
}, |
|
|
|
height: this.deviceType === 'mobile' ? '98vh' : '80vh', |
|
|
|
width: this.deviceType === 'mobile' ? '100vw' : '50rem' |
|
|
|
}); |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
dialogRef |
|
|
|
.afterClosed() |
|
|
|