Feature/improve wording of data providers management (#4617)

* Improve wording
This commit is contained in:
Thomas Kaul 2025-04-28 18:26:07 +02:00 committed by GitHub
parent c671ea4022
commit 398833a0e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 19 additions and 27 deletions

View File

@ -25,6 +25,7 @@ import { DeviceDetectorService } from 'ngx-device-detector';
import { catchError, filter, of, Subject, takeUntil } from 'rxjs';
import { GfGhostfolioPremiumApiDialogComponent } from './ghostfolio-premium-api-dialog/ghostfolio-premium-api-dialog.component';
import { GhostfolioPremiumApiDialogParams } from './ghostfolio-premium-api-dialog/interfaces/interfaces';
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
@ -101,9 +102,8 @@ export class AdminSettingsComponent implements OnDestroy, OnInit {
autoFocus: false,
data: {
deviceType: this.deviceType,
pricingUrl: this.pricingUrl,
user: this.user
},
pricingUrl: this.pricingUrl
} as GhostfolioPremiumApiDialogParams,
height: this.deviceType === 'mobile' ? '98vh' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem'
}

View File

@ -7,8 +7,8 @@
/>
<div class="text-center" mat-dialog-content>
<p class="gf-text-wrap-balance mb-1">
The official
<p class="gf-text-wrap-balance">
Early access to the official
<a
class="align-items-center d-inline-flex"
target="_blank"
@ -18,32 +18,27 @@
</a>
data provider <strong>for self-hosters</strong>, offering
<strong>80000+ tickers</strong> from over <strong>50 exchanges</strong>, is
coming soon!
</p>
<p i18n>
Want to stay updated? Click below to get notified as soon as its available.
ready now!
</p>
<div>
<a
color="primary"
href="mailto:hi@ghostfol.io?Subject=Ghostfolio Premium Data Provider&body=Hello%0D%0DPlease notify me as soon as the Ghostfolio Premium Data Provider is available.%0D%0DKind regards"
href="mailto:hi@ghostfol.io?Subject=Ghostfolio Premium Data Provider&body=Hello%0D%0DI am interested in the Ghostfolio Premium data provider. Could you please give me early access so I can try it for some time?%0D%0DKind regards"
i18n
mat-flat-button
>Notify me</a
>Get Early Access</a
>
@if (data.user?.settings?.isExperimentalFeatures) {
<div>
<small class="text-muted" i18n>or</small>
</div>
<button
color="accent"
i18n
mat-stroked-button
(click)="onSetGhostfolioApiKey()"
>
I have an API key
</button>
}
<div>
<small class="text-muted" i18n>or</small>
</div>
<button
color="accent"
i18n
mat-stroked-button
(click)="onSetGhostfolioApiKey()"
>
I have an API key
</button>
</div>
</div>

View File

@ -1,7 +1,4 @@
import { User } from '@ghostfolio/common/interfaces';
export interface GhostfolioPremiumApiDialogParams {
deviceType: string;
pricingUrl: string;
user: User;
}