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

View File

@ -7,8 +7,8 @@
/> />
<div class="text-center" mat-dialog-content> <div class="text-center" mat-dialog-content>
<p class="gf-text-wrap-balance mb-1"> <p class="gf-text-wrap-balance">
The official Early access to the official
<a <a
class="align-items-center d-inline-flex" class="align-items-center d-inline-flex"
target="_blank" target="_blank"
@ -18,32 +18,27 @@
</a> </a>
data provider <strong>for self-hosters</strong>, offering data provider <strong>for self-hosters</strong>, offering
<strong>80000+ tickers</strong> from over <strong>50 exchanges</strong>, is <strong>80000+ tickers</strong> from over <strong>50 exchanges</strong>, is
coming soon! ready now!
</p>
<p i18n>
Want to stay updated? Click below to get notified as soon as its available.
</p> </p>
<div> <div>
<a <a
color="primary" 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 i18n
mat-flat-button mat-flat-button
>Notify me</a >Get Early Access</a
> >
@if (data.user?.settings?.isExperimentalFeatures) { <div>
<div> <small class="text-muted" i18n>or</small>
<small class="text-muted" i18n>or</small> </div>
</div> <button
<button color="accent"
color="accent" i18n
i18n mat-stroked-button
mat-stroked-button (click)="onSetGhostfolioApiKey()"
(click)="onSetGhostfolioApiKey()" >
> I have an API key
I have an API key </button>
</button>
}
</div> </div>
</div> </div>

View File

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