|
|
|
@ -81,6 +81,7 @@ export class GfAdminSettingsComponent implements OnInit { |
|
|
|
'actions' |
|
|
|
]; |
|
|
|
public ghostfolioApiStatus: DataProviderGhostfolioStatusResponse; |
|
|
|
public hasGhostfolioApiKey: boolean; |
|
|
|
public isGhostfolioApiKeyValid: boolean; |
|
|
|
public isLoading = false; |
|
|
|
public readonly premiumDataProviderMailHref = `mailto:hi@ghostfol.io?subject=Ghostfolio Premium Data Provider&body=${[ |
|
|
|
@ -184,6 +185,8 @@ export class GfAdminSettingsComponent implements OnInit { |
|
|
|
PROPERTY_API_KEY_GHOSTFOLIO |
|
|
|
] as string; |
|
|
|
|
|
|
|
this.hasGhostfolioApiKey = !!ghostfolioApiKey; |
|
|
|
|
|
|
|
if (ghostfolioApiKey) { |
|
|
|
this.adminService |
|
|
|
.fetchGhostfolioDataProviderStatus(ghostfolioApiKey) |
|
|
|
|