Browse Source

feat(client): enforce immutability

pull/7302/head
KenTandrian 4 days ago
parent
commit
166837085d
  1. 30
      apps/client/src/app/components/user-account-settings/user-account-settings.component.ts

30
apps/client/src/app/components/user-account-settings/user-account-settings.component.ts

@ -71,19 +71,19 @@ import { catchError } from 'rxjs/operators';
templateUrl: './user-account-settings.html' templateUrl: './user-account-settings.html'
}) })
export class GfUserAccountSettingsComponent implements OnInit { export class GfUserAccountSettingsComponent implements OnInit {
protected appearancePlaceholder = $localize`Auto`; protected readonly appearancePlaceholder = $localize`Auto`;
protected baseCurrency: string; protected readonly baseCurrency: string;
protected closeUserAccountMail: string; protected closeUserAccountMail: string;
protected currencies: string[] = []; protected readonly currencies: string[] = [];
protected deleteOwnUserForm: FormGroup; protected readonly deleteOwnUserForm: FormGroup;
protected hasPermissionToDeleteOwnUser: boolean; protected hasPermissionToDeleteOwnUser: boolean;
protected hasPermissionToRequestOwnUserDeletion: boolean; protected hasPermissionToRequestOwnUserDeletion: boolean;
protected hasPermissionToUpdateViewMode: boolean; protected hasPermissionToUpdateViewMode: boolean;
protected hasPermissionToUpdateUserSettings: boolean; protected hasPermissionToUpdateUserSettings: boolean;
protected isAccessTokenHidden = true; protected isAccessTokenHidden = true;
protected isFingerprintSupported = this.doesBrowserSupportAuthn(); protected readonly isFingerprintSupported = this.doesBrowserSupportAuthn();
protected isWebAuthnEnabled: boolean; protected isWebAuthnEnabled: boolean;
protected language = document.documentElement.lang; protected readonly language = document.documentElement.lang;
protected locales = [ protected locales = [
'ca', 'ca',
'de', 'de',
@ -104,15 +104,15 @@ export class GfUserAccountSettingsComponent implements OnInit {
]; ];
protected user: User; protected user: User;
private changeDetectorRef = inject(ChangeDetectorRef); private readonly changeDetectorRef = inject(ChangeDetectorRef);
private dataService = inject(DataService); private readonly dataService = inject(DataService);
private destroyRef = inject(DestroyRef); private readonly destroyRef = inject(DestroyRef);
private formBuilder = inject(FormBuilder); private readonly formBuilder = inject(FormBuilder);
private notificationService = inject(NotificationService); private readonly notificationService = inject(NotificationService);
private settingsStorageService = inject(SettingsStorageService); private readonly settingsStorageService = inject(SettingsStorageService);
private snackBar = inject(MatSnackBar); private readonly snackBar = inject(MatSnackBar);
private userService = inject(UserService); private readonly userService = inject(UserService);
private webAuthnService = inject(WebAuthnService); private readonly webAuthnService = inject(WebAuthnService);
public constructor() { public constructor() {
this.deleteOwnUserForm = this.formBuilder.group({ this.deleteOwnUserForm = this.formBuilder.group({

Loading…
Cancel
Save