Browse Source

Task/extend report data glitch mail subject with symbol (#7102)

Extend subject with symbol
pull/7104/head
Thomas Kaul 7 days ago
committed by GitHub
parent
commit
cd6382c342
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 23
      apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

23
apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts

@ -412,7 +412,6 @@ export class GfHoldingDetailDialogComponent implements OnInit {
} }
} }
this.reportDataGlitchMail = `mailto:hi@ghostfol.io?Subject=Ghostfolio Data Glitch Report&body=Hello%0D%0DI would like to report a data glitch for%0D%0DSymbol: ${SymbolProfile?.symbol}%0DData Source: ${SymbolProfile?.dataSource}%0D%0DAdditional notes:%0D%0DCan you please take a look?%0D%0DKind regards`;
this.sectors = {}; this.sectors = {};
this.SymbolProfile = SymbolProfile; this.SymbolProfile = SymbolProfile;
@ -427,16 +426,22 @@ export class GfHoldingDetailDialogComponent implements OnInit {
this.value = value; this.value = value;
if (SymbolProfile?.assetClass) { const reportDataGlitchSubject = `Ghostfolio Data Glitch Report${
this.assetClass = translate(SymbolProfile?.assetClass); this.SymbolProfile?.symbol ? ` (${this.SymbolProfile.symbol})` : ''
}`;
this.reportDataGlitchMail = `mailto:hi@ghostfol.io?Subject=${reportDataGlitchSubject}&body=Hello%0D%0DI would like to report a data glitch for%0D%0DSymbol: ${this.SymbolProfile?.symbol}%0DData Source: ${this.SymbolProfile?.dataSource}%0D%0DAdditional notes:%0D%0DCan you please take a look?%0D%0DKind regards`;
if (this.SymbolProfile?.assetClass) {
this.assetClass = translate(this.SymbolProfile?.assetClass);
} }
if (SymbolProfile?.assetSubClass) { if (this.SymbolProfile?.assetSubClass) {
this.assetSubClass = translate(SymbolProfile?.assetSubClass); this.assetSubClass = translate(this.SymbolProfile?.assetSubClass);
} }
if (SymbolProfile?.countries?.length > 0) { if (this.SymbolProfile?.countries?.length > 0) {
for (const country of SymbolProfile.countries) { for (const country of this.SymbolProfile.countries) {
this.countries[country.code] = { this.countries[country.code] = {
name: getCountryName({ code: country.code }), name: getCountryName({ code: country.code }),
value: country.weight value: country.weight
@ -444,8 +449,8 @@ export class GfHoldingDetailDialogComponent implements OnInit {
} }
} }
if (SymbolProfile?.sectors?.length > 0) { if (this.SymbolProfile?.sectors?.length > 0) {
for (const sector of SymbolProfile.sectors) { for (const sector of this.SymbolProfile.sectors) {
this.sectors[sector.name] = { this.sectors[sector.name] = {
name: translate(sector.name), name: translate(sector.name),
value: sector.weight value: sector.weight

Loading…
Cancel
Save