Browse Source

Task/rename deviceService to deviceDetectorService for consistency (#6810)

* Rename deviceService to deviceDetectorService for consistency
pull/6814/head
Thomas Kaul 2 weeks ago
committed by GitHub
parent
commit
1f78ba5bbb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      apps/client/src/app/app.component.ts
  2. 4
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
  3. 4
      apps/client/src/app/components/admin-platform/admin-platform.component.ts
  4. 4
      apps/client/src/app/components/admin-tag/admin-tag.component.ts
  5. 4
      apps/client/src/app/components/admin-users/admin-users.component.ts
  6. 4
      apps/client/src/app/components/home-holdings/home-holdings.component.ts
  7. 4
      apps/client/src/app/components/home-market/home-market.component.ts
  8. 4
      apps/client/src/app/components/home-overview/home-overview.component.ts
  9. 4
      apps/client/src/app/components/home-summary/home-summary.component.ts
  10. 4
      apps/client/src/app/components/markets/markets.component.ts
  11. 4
      apps/client/src/app/components/rule/rule.component.ts
  12. 4
      apps/client/src/app/components/user-account-access/user-account-access.component.ts
  13. 4
      apps/client/src/app/core/layout.service.ts
  14. 4
      apps/client/src/app/pages/about/about-page.component.ts
  15. 4
      apps/client/src/app/pages/accounts/accounts-page.component.ts
  16. 4
      apps/client/src/app/pages/admin/admin-page.component.ts
  17. 4
      apps/client/src/app/pages/faq/faq-page.component.ts
  18. 4
      apps/client/src/app/pages/home/home-page.component.ts
  19. 4
      apps/client/src/app/pages/landing/landing-page.component.ts
  20. 4
      apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
  21. 4
      apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
  22. 4
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  23. 4
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts
  24. 4
      apps/client/src/app/pages/portfolio/portfolio-page.component.ts
  25. 4
      apps/client/src/app/pages/register/register-page.component.ts
  26. 4
      apps/client/src/app/pages/resources/resources-page.component.ts
  27. 4
      apps/client/src/app/pages/user-account/user-account-page.component.ts
  28. 4
      apps/client/src/app/pages/zen/zen-page.component.ts
  29. 4
      apps/client/src/app/services/user/user.service.ts

4
apps/client/src/app/app.component.ts

@ -67,7 +67,7 @@ export class GfAppComponent implements OnInit {
private readonly changeDetectorRef = inject(ChangeDetectorRef); private readonly changeDetectorRef = inject(ChangeDetectorRef);
private readonly dataService = inject(DataService); private readonly dataService = inject(DataService);
private readonly destroyRef = inject(DestroyRef); private readonly destroyRef = inject(DestroyRef);
private readonly deviceService = inject(DeviceDetectorService); private readonly deviceDetectorService = inject(DeviceDetectorService);
private readonly dialog = inject(MatDialog); private readonly dialog = inject(MatDialog);
private readonly document = inject(DOCUMENT); private readonly document = inject(DOCUMENT);
private readonly impersonationStorageService = inject( private readonly impersonationStorageService = inject(
@ -104,7 +104,7 @@ export class GfAppComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.info = this.dataService.fetchInfo(); this.info = this.dataService.fetchInfo();
this.impersonationStorageService this.impersonationStorageService

4
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -171,7 +171,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private route: ActivatedRoute, private route: ActivatedRoute,
private router: Router, private router: Router,
@ -272,7 +272,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {
const { benchmarks } = this.dataService.fetchInfo(); const { benchmarks } = this.dataService.fetchInfo();
this.benchmarks = benchmarks; this.benchmarks = benchmarks;
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.selection = new SelectionModel(true); this.selection = new SelectionModel(true);
} }

4
apps/client/src/app/components/admin-platform/admin-platform.component.ts

@ -68,7 +68,7 @@ export class GfAdminPlatformComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private notificationService: NotificationService, private notificationService: NotificationService,
private route: ActivatedRoute, private route: ActivatedRoute,
@ -97,7 +97,7 @@ export class GfAdminPlatformComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.fetchPlatforms(); this.fetchPlatforms();
} }

4
apps/client/src/app/components/admin-tag/admin-tag.component.ts

@ -65,7 +65,7 @@ export class GfAdminTagComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private notificationService: NotificationService, private notificationService: NotificationService,
private route: ActivatedRoute, private route: ActivatedRoute,
@ -94,7 +94,7 @@ export class GfAdminTagComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.fetchTags(); this.fetchTags();
} }

4
apps/client/src/app/components/admin-users/admin-users.component.ts

@ -98,7 +98,7 @@ export class GfAdminUsersComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private notificationService: NotificationService, private notificationService: NotificationService,
@ -106,7 +106,7 @@ export class GfAdminUsersComponent implements OnInit {
private router: Router, private router: Router,
private userService: UserService private userService: UserService
) { ) {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.info = this.dataService.fetchInfo(); this.info = this.dataService.fetchInfo();
this.hasPermissionForSubscription = hasPermission( this.hasPermissionForSubscription = hasPermission(

4
apps/client/src/app/components/home-holdings/home-holdings.component.ts

@ -74,7 +74,7 @@ export class GfHomeHoldingsComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private router: Router, private router: Router,
private userService: UserService private userService: UserService
@ -83,7 +83,7 @@ export class GfHomeHoldingsComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/components/home-market/home-market.component.ts

@ -50,10 +50,10 @@ export class GfHomeMarketComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private userService: UserService private userService: UserService
) { ) {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.info = this.dataService.fetchInfo(); this.info = this.dataService.fetchInfo();
this.userService.stateChanged this.userService.stateChanged

4
apps/client/src/app/components/home-overview/home-overview.component.ts

@ -65,7 +65,7 @@ export class GfHomeOverviewComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private layoutService: LayoutService, private layoutService: LayoutService,
private userService: UserService private userService: UserService
@ -87,7 +87,7 @@ export class GfHomeOverviewComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.showDetails = this.showDetails =
!this.user.settings.isRestrictedView && !this.user.settings.isRestrictedView &&

4
apps/client/src/app/components/home-summary/home-summary.component.ts

@ -43,7 +43,7 @@ export class GfHomeSummaryComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private userService: UserService private userService: UserService
) { ) {
@ -71,7 +71,7 @@ export class GfHomeSummaryComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/components/markets/markets.component.ts

@ -58,10 +58,10 @@ export class GfMarketsComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private userService: UserService private userService: UserService
) { ) {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.userService.stateChanged this.userService.stateChanged
.pipe(takeUntilDestroyed(this.destroyRef)) .pipe(takeUntilDestroyed(this.destroyRef))

4
apps/client/src/app/components/rule/rule.component.ts

@ -61,7 +61,7 @@ export class GfRuleComponent implements OnInit {
private deviceType: string; private deviceType: string;
public constructor( public constructor(
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog private dialog: MatDialog
) { ) {
addIcons({ addIcons({
@ -75,7 +75,7 @@ export class GfRuleComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
public onCustomizeRule(rule: PortfolioReportRule) { public onCustomizeRule(rule: PortfolioReportRule) {

4
apps/client/src/app/components/user-account-access/user-account-access.component.ts

@ -69,7 +69,7 @@ export class GfUserAccountAccessComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private formBuilder: FormBuilder, private formBuilder: FormBuilder,
private notificationService: NotificationService, private notificationService: NotificationService,
@ -123,7 +123,7 @@ export class GfUserAccountAccessComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.update(); this.update();
} }

4
apps/client/src/app/core/layout.service.ts

@ -16,12 +16,12 @@ export class LayoutService {
private shouldReloadSubject = new Subject<void>(); private shouldReloadSubject = new Subject<void>();
public constructor( public constructor(
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private notificationService: NotificationService private notificationService: NotificationService
) { ) {
this.shouldReloadContent$ = this.shouldReloadSubject.asObservable(); this.shouldReloadContent$ = this.shouldReloadSubject.asObservable();
const deviceType = this.deviceService.getDeviceInfo().deviceType; const deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.notificationService.setDialogWidth( this.notificationService.setDialogWidth(
deviceType === 'mobile' deviceType === 'mobile'

4
apps/client/src/app/pages/about/about-page.component.ts

@ -44,7 +44,7 @@ export class AboutPageComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private userService: UserService private userService: UserService
) { ) {
const { globalPermissions } = this.dataService.fetchInfo(); const { globalPermissions } = this.dataService.fetchInfo();
@ -114,6 +114,6 @@ export class AboutPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/pages/accounts/accounts-page.component.ts

@ -58,7 +58,7 @@ export class GfAccountsPageComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private notificationService: NotificationService, private notificationService: NotificationService,
@ -95,7 +95,7 @@ export class GfAccountsPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/pages/admin/admin-page.component.ts

@ -26,7 +26,7 @@ export class AdminPageComponent implements OnInit {
public deviceType: string; public deviceType: string;
public tabs: TabConfiguration[] = []; public tabs: TabConfiguration[] = [];
public constructor(private deviceService: DeviceDetectorService) { public constructor(private deviceDetectorService: DeviceDetectorService) {
addIcons({ addIcons({
flashOutline, flashOutline,
peopleOutline, peopleOutline,
@ -37,7 +37,7 @@ export class AdminPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.tabs = [ this.tabs = [
{ {

4
apps/client/src/app/pages/faq/faq-page.component.ts

@ -26,7 +26,7 @@ export class GfFaqPageComponent implements OnInit {
public constructor( public constructor(
private dataService: DataService, private dataService: DataService,
private deviceService: DeviceDetectorService private deviceDetectorService: DeviceDetectorService
) { ) {
const { globalPermissions } = this.dataService.fetchInfo(); const { globalPermissions } = this.dataService.fetchInfo();
@ -58,6 +58,6 @@ export class GfFaqPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/pages/home/home-page.component.ts

@ -42,7 +42,7 @@ export class GfHomePageComponent implements OnInit {
public constructor( public constructor(
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private userService: UserService private userService: UserService
) { ) {
@ -104,7 +104,7 @@ export class GfHomePageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/pages/landing/landing-page.component.ts

@ -108,7 +108,7 @@ export class GfLandingPageComponent implements OnInit {
public constructor( public constructor(
private dataService: DataService, private dataService: DataService,
private deviceService: DeviceDetectorService private deviceDetectorService: DeviceDetectorService
) { ) {
const { const {
countriesOfSubscribers = [], countriesOfSubscribers = [],
@ -150,6 +150,6 @@ export class GfLandingPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts

@ -72,7 +72,7 @@ export class GfActivitiesPageComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private icsService: IcsService, private icsService: IcsService,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
@ -112,7 +112,7 @@ export class GfActivitiesPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts

@ -109,7 +109,7 @@ export class GfImportActivitiesDialogComponent {
@Inject(MAT_DIALOG_DATA) public data: ImportActivitiesDialogParams, @Inject(MAT_DIALOG_DATA) public data: ImportActivitiesDialogParams,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private formBuilder: FormBuilder, private formBuilder: FormBuilder,
public dialogRef: MatDialogRef<GfImportActivitiesDialogComponent>, public dialogRef: MatDialogRef<GfImportActivitiesDialogComponent>,
private importActivitiesService: ImportActivitiesService, private importActivitiesService: ImportActivitiesService,
@ -119,7 +119,7 @@ export class GfImportActivitiesDialogComponent {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.stepperOrientation = this.stepperOrientation =
this.deviceType === 'mobile' ? 'vertical' : 'horizontal'; this.deviceType === 'mobile' ? 'vertical' : 'horizontal';

4
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -127,7 +127,7 @@ export class GfAllocationsPageComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private route: ActivatedRoute, private route: ActivatedRoute,
@ -144,7 +144,7 @@ export class GfAllocationsPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -106,7 +106,7 @@ export class GfAnalysisPageComponent implements OnInit {
private clipboard: Clipboard, private clipboard: Clipboard,
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private impersonationStorageService: ImpersonationStorageService, private impersonationStorageService: ImpersonationStorageService,
private snackBar: MatSnackBar, private snackBar: MatSnackBar,
private userService: UserService private userService: UserService
@ -129,7 +129,7 @@ export class GfAnalysisPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.impersonationStorageService this.impersonationStorageService
.onChangeHasImpersonation() .onChangeHasImpersonation()

4
apps/client/src/app/pages/portfolio/portfolio-page.component.ts

@ -36,7 +36,7 @@ export class PortfolioPageComponent implements OnInit {
public constructor( public constructor(
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private userService: UserService private userService: UserService
) { ) {
this.userService.stateChanged this.userService.stateChanged
@ -88,6 +88,6 @@ export class PortfolioPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/pages/register/register-page.component.ts

@ -40,7 +40,7 @@ export class GfRegisterPageComponent implements OnInit {
public constructor( public constructor(
private dataService: DataService, private dataService: DataService,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private router: Router, private router: Router,
private tokenStorageService: TokenStorageService, private tokenStorageService: TokenStorageService,
@ -54,7 +54,7 @@ export class GfRegisterPageComponent implements OnInit {
public ngOnInit() { public ngOnInit() {
const { globalPermissions } = this.dataService.fetchInfo(); const { globalPermissions } = this.dataService.fetchInfo();
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
this.hasPermissionForAuthGoogle = hasPermission( this.hasPermissionForAuthGoogle = hasPermission(
globalPermissions, globalPermissions,

4
apps/client/src/app/pages/resources/resources-page.component.ts

@ -46,11 +46,11 @@ export class ResourcesPageComponent implements OnInit {
} }
]; ];
public constructor(private deviceService: DeviceDetectorService) { public constructor(private deviceDetectorService: DeviceDetectorService) {
addIcons({ bookOutline, libraryOutline, newspaperOutline, readerOutline }); addIcons({ bookOutline, libraryOutline, newspaperOutline, readerOutline });
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/pages/user-account/user-account-page.component.ts

@ -33,7 +33,7 @@ export class GfUserAccountPageComponent implements OnInit {
public constructor( public constructor(
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private userService: UserService private userService: UserService
) { ) {
this.userService.stateChanged this.userService.stateChanged
@ -70,6 +70,6 @@ export class GfUserAccountPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/pages/zen/zen-page.component.ts

@ -31,7 +31,7 @@ export class GfZenPageComponent implements OnInit {
public constructor( public constructor(
private changeDetectorRef: ChangeDetectorRef, private changeDetectorRef: ChangeDetectorRef,
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private userService: UserService private userService: UserService
) { ) {
this.userService.stateChanged this.userService.stateChanged
@ -60,6 +60,6 @@ export class GfZenPageComponent implements OnInit {
} }
public ngOnInit() { public ngOnInit() {
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
} }

4
apps/client/src/app/services/user/user.service.ts

@ -26,7 +26,7 @@ export class UserService extends ObservableStore<UserStoreState> {
public constructor( public constructor(
private destroyRef: DestroyRef, private destroyRef: DestroyRef,
private deviceService: DeviceDetectorService, private deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private dialog: MatDialog,
private http: HttpClient, private http: HttpClient,
private webAuthnService: WebAuthnService private webAuthnService: WebAuthnService
@ -35,7 +35,7 @@ export class UserService extends ObservableStore<UserStoreState> {
this.setState({ user: undefined }, UserStoreActions.Initialize); this.setState({ user: undefined }, UserStoreActions.Initialize);
this.deviceType = this.deviceService.getDeviceInfo().deviceType; this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType;
} }
public get(force = false) { public get(force = false) {

Loading…
Cancel
Save