Browse Source

chore(refactor): change formating

pull/4469/head
tobikugel 3 weeks ago
committed by Thomas Kaul
parent
commit
0a7409b715
  1. 24
      apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

24
apps/client/src/app/components/admin-market-data/asset-profile-dialog/asset-profile-dialog.component.ts

@ -69,18 +69,6 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
return { id: assetSubClass, label: translate(assetSubClass) };
});
public assetProfile: AdminMarketDataDetails['assetProfile'];
public assetProfileIdentifierForm = this.formBuilder.group(
{
symbol: new FormControl<AssetProfileIdentifier>(
{ symbol: null, dataSource: null },
[Validators.required]
)
},
{
validators: (control) => this.isNewSymbolValid(control)
}
);
public assetProfileForm = this.formBuilder.group({
assetClass: new FormControl<AssetClass>(undefined),
assetSubClass: new FormControl<AssetSubClass>(undefined),
@ -103,6 +91,17 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
symbolMapping: '',
url: ''
});
public assetProfileIdentifierForm = this.formBuilder.group(
{
symbol: new FormControl<AssetProfileIdentifier>(
{ symbol: null, dataSource: null },
[Validators.required]
)
},
{
validators: (control) => this.isNewSymbolValid(control)
}
);
public assetProfileSubClass: string;
public benchmarks: Partial<SymbolProfile>[];
public countries: {
@ -555,6 +554,7 @@ export class AssetProfileDialog implements OnDestroy, OnInit {
public ngOnDestroy() {
this.unsubscribeSubject.next();
this.unsubscribeSubject.complete();
}

Loading…
Cancel
Save