Browse Source

feat(client): enforce immutability

pull/6806/head
KenTandrian 4 weeks ago
parent
commit
93877aeea5
  1. 26
      apps/client/src/app/pages/pricing/pricing-page.component.ts

26
apps/client/src/app/pages/pricing/pricing-page.component.ts

@ -55,15 +55,15 @@ export class GfPricingPageComponent implements OnInit {
public hasPermissionToCreateUser: boolean; public hasPermissionToCreateUser: boolean;
public hasPermissionToUpdateUserSettings: boolean; public hasPermissionToUpdateUserSettings: boolean;
public importAndExportTooltipBasic = translate( public readonly importAndExportTooltipBasic = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_BASIC' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_BASIC'
); );
public importAndExportTooltipOSS = translate( public readonly importAndExportTooltipOSS = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_OSS' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_OSS'
); );
public importAndExportTooltipPremium = translate( public readonly importAndExportTooltipPremium = translate(
'DATA_IMPORT_AND_EXPORT_TOOLTIP_PREMIUM' 'DATA_IMPORT_AND_EXPORT_TOOLTIP_PREMIUM'
); );
@ -72,11 +72,11 @@ export class GfPricingPageComponent implements OnInit {
public price: number | undefined; public price: number | undefined;
public priceId: string; public priceId: string;
public professionalDataProviderTooltipPremium = translate( public readonly professionalDataProviderTooltipPremium = translate(
'PROFESSIONAL_DATA_PROVIDER_TOOLTIP_PREMIUM' 'PROFESSIONAL_DATA_PROVIDER_TOOLTIP_PREMIUM'
); );
public referralBrokers = [ public readonly referralBrokers = [
'Alpian', 'Alpian',
'DEGIRO', 'DEGIRO',
'finpension', 'finpension',
@ -87,18 +87,18 @@ export class GfPricingPageComponent implements OnInit {
'Swissquote', 'Swissquote',
'VIAC', 'VIAC',
'Zak' 'Zak'
]; ] as const;
public routerLinkFeatures = publicRoutes.features.routerLink; public readonly routerLinkFeatures = publicRoutes.features.routerLink;
public routerLinkRegister = publicRoutes.register.routerLink; public readonly routerLinkRegister = publicRoutes.register.routerLink;
public user: User; public user: User;
public constructor( public constructor(
private changeDetectorRef: ChangeDetectorRef, private readonly changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private readonly dataService: DataService,
private destroyRef: DestroyRef, private readonly destroyRef: DestroyRef,
private notificationService: NotificationService, private readonly notificationService: NotificationService,
private userService: UserService private readonly userService: UserService
) { ) {
addIcons({ addIcons({
checkmarkCircleOutline, checkmarkCircleOutline,

Loading…
Cancel
Save