|
|
@ -5,7 +5,7 @@ import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; |
|
|
import { DataService } from '@ghostfolio/ui/services'; |
|
|
import { DataService } from '@ghostfolio/ui/services'; |
|
|
|
|
|
|
|
|
import { CommonModule, NgClass } from '@angular/common'; |
|
|
import { CommonModule, NgClass } from '@angular/common'; |
|
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core'; |
|
|
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; |
|
|
import { |
|
|
import { |
|
|
AbstractControl, |
|
|
AbstractControl, |
|
|
FormBuilder, |
|
|
FormBuilder, |
|
|
@ -56,12 +56,12 @@ export class GfCreateOrUpdateAccountDialogComponent { |
|
|
public filteredPlatforms: Observable<Platform[]> | undefined; |
|
|
public filteredPlatforms: Observable<Platform[]> | undefined; |
|
|
public platforms: Platform[] = []; |
|
|
public platforms: Platform[] = []; |
|
|
|
|
|
|
|
|
public constructor( |
|
|
protected readonly data = |
|
|
@Inject(MAT_DIALOG_DATA) public data: CreateOrUpdateAccountDialogParams, |
|
|
inject<CreateOrUpdateAccountDialogParams>(MAT_DIALOG_DATA); |
|
|
private dataService: DataService, |
|
|
private readonly dataService = inject(DataService); |
|
|
public dialogRef: MatDialogRef<GfCreateOrUpdateAccountDialogComponent>, |
|
|
private readonly dialogRef = |
|
|
private formBuilder: FormBuilder |
|
|
inject<MatDialogRef<GfCreateOrUpdateAccountDialogComponent>>(MatDialogRef); |
|
|
) {} |
|
|
private readonly formBuilder = inject(FormBuilder); |
|
|
|
|
|
|
|
|
public ngOnInit() { |
|
|
public ngOnInit() { |
|
|
const { currencies } = this.dataService.fetchInfo(); |
|
|
const { currencies } = this.dataService.fetchInfo(); |
|
|
|