Feature/move set Ghostfolio API key to experimental (#4147)

* Move set Ghostfolio API key to experimental
pull/4149/head^2
Thomas Kaul 2 weeks ago committed by GitHub
parent c9047e7c17
commit 15639cb3d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -100,7 +100,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
}, },
height: this.deviceType === 'mobile' ? '98vh' : undefined, height: this.deviceType === 'mobile' ? '98vh' : undefined,
width: this.deviceType === 'mobile' ? '100vw' : '50rem' width: this.deviceType === 'mobile' ? '100vw' : '50rem'

@ -31,17 +31,19 @@
mat-flat-button mat-flat-button
>Notify me</a >Notify me</a
> >
<div> @if (data.user?.settings?.isExperimentalFeatures) {
<small class="text-muted" i18n>or</small> <div>
</div> <small class="text-muted" i18n>or</small>
<button </div>
color="accent" <button
i18n color="accent"
mat-stroked-button i18n
(click)="onSetGhostfolioApiKey()" mat-stroked-button
> (click)="onSetGhostfolioApiKey()"
I have an API key >
</button> I have an API key
</button>
}
</div> </div>
</div> </div>

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

Loading…
Cancel
Save