|
|
@ -56,14 +56,18 @@ export class GfUserDetailDialogComponent implements OnInit { |
|
|
protected readonly baseCurrency: string; |
|
|
protected readonly baseCurrency: string; |
|
|
protected readonly canDeleteUser = canDeleteUser; |
|
|
protected readonly canDeleteUser = canDeleteUser; |
|
|
protected readonly getCountryName = getCountryName; |
|
|
protected readonly getCountryName = getCountryName; |
|
|
|
|
|
protected isLoading = true; |
|
|
|
|
|
|
|
|
protected readonly subscriptionsDataSource = |
|
|
protected readonly subscriptionsDataSource = |
|
|
new MatTableDataSource<Subscription>(); |
|
|
new MatTableDataSource<Subscription>(); |
|
|
|
|
|
|
|
|
protected readonly subscriptionsDisplayedColumns = [ |
|
|
protected readonly subscriptionsDisplayedColumns = [ |
|
|
'createdAt', |
|
|
'createdAt', |
|
|
'type', |
|
|
'type', |
|
|
'price', |
|
|
'price', |
|
|
'expiresAt' |
|
|
'expiresAt' |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
protected user: AdminUserResponse; |
|
|
protected user: AdminUserResponse; |
|
|
|
|
|
|
|
|
protected readonly data = inject<UserDetailDialogParams>(MAT_DIALOG_DATA); |
|
|
protected readonly data = inject<UserDetailDialogParams>(MAT_DIALOG_DATA); |
|
|
@ -72,6 +76,7 @@ export class GfUserDetailDialogComponent implements OnInit { |
|
|
private readonly changeDetectorRef = inject(ChangeDetectorRef); |
|
|
private readonly changeDetectorRef = inject(ChangeDetectorRef); |
|
|
private readonly dataService = inject(DataService); |
|
|
private readonly dataService = inject(DataService); |
|
|
private readonly destroyRef = inject(DestroyRef); |
|
|
private readonly destroyRef = inject(DestroyRef); |
|
|
|
|
|
|
|
|
private readonly dialogRef = |
|
|
private readonly dialogRef = |
|
|
inject<MatDialogRef<GfUserDetailDialogComponent, UserDetailDialogResult>>( |
|
|
inject<MatDialogRef<GfUserDetailDialogComponent, UserDetailDialogResult>>( |
|
|
MatDialogRef |
|
|
MatDialogRef |
|
|
@ -101,6 +106,8 @@ export class GfUserDetailDialogComponent implements OnInit { |
|
|
|
|
|
|
|
|
this.subscriptionsDataSource.data = this.user.subscriptions ?? []; |
|
|
this.subscriptionsDataSource.data = this.user.subscriptions ?? []; |
|
|
|
|
|
|
|
|
|
|
|
this.isLoading = false; |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|