Browse Source

feat(client): enforce immutability

pull/7286/head
KenTandrian 5 days ago
parent
commit
c3470622cd
  1. 18
      apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

18
apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

@ -39,15 +39,15 @@ import { catchError } from 'rxjs/operators';
templateUrl: './user-account-membership.html' templateUrl: './user-account-membership.html'
}) })
export class GfUserAccountMembershipComponent { export class GfUserAccountMembershipComponent {
protected baseCurrency: string; protected readonly baseCurrency: string;
protected coupon: number | undefined; protected coupon: number | undefined;
protected defaultDateFormat: string; protected defaultDateFormat: string;
protected durationExtension: StringValue | undefined; protected durationExtension: StringValue | undefined;
protected hasPermissionForSubscription: boolean; protected readonly hasPermissionForSubscription: boolean;
protected hasPermissionToCreateApiKey: boolean; protected hasPermissionToCreateApiKey: boolean;
protected hasPermissionToUpdateUserSettings: boolean; protected hasPermissionToUpdateUserSettings: boolean;
protected price: number; protected price: number;
protected trySubscriptionMail = protected readonly trySubscriptionMail =
'mailto:hi@ghostfol.io?subject=Ghostfolio Premium Trial&body=Hello%0D%0DI am interested in Ghostfolio Premium. Can you please send me a coupon code to try it for some time?%0D%0DKind regards'; 'mailto:hi@ghostfol.io?subject=Ghostfolio Premium Trial&body=Hello%0D%0DI am interested in Ghostfolio Premium. Can you please send me a coupon code to try it for some time?%0D%0DKind regards';
protected user: User; protected user: User;
@ -55,12 +55,12 @@ export class GfUserAccountMembershipComponent {
private priceId: string; private priceId: string;
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 snackBar: MatSnackBar, private readonly snackBar: MatSnackBar,
private userService: UserService private readonly userService: UserService
) { ) {
const { baseCurrency, globalPermissions } = this.dataService.fetchInfo(); const { baseCurrency, globalPermissions } = this.dataService.fetchInfo();

Loading…
Cancel
Save