From 1f78ba5bbb94093dc325a5a4808f50d4847d9742 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Fri, 1 May 2026 10:08:03 +0200 Subject: [PATCH] Task/rename deviceService to deviceDetectorService for consistency (#6810) * Rename deviceService to deviceDetectorService for consistency --- apps/client/src/app/app.component.ts | 4 ++-- .../admin-market-data/admin-market-data.component.ts | 4 ++-- .../app/components/admin-platform/admin-platform.component.ts | 4 ++-- .../src/app/components/admin-tag/admin-tag.component.ts | 4 ++-- .../src/app/components/admin-users/admin-users.component.ts | 4 ++-- .../app/components/home-holdings/home-holdings.component.ts | 4 ++-- .../src/app/components/home-market/home-market.component.ts | 4 ++-- .../app/components/home-overview/home-overview.component.ts | 4 ++-- .../src/app/components/home-summary/home-summary.component.ts | 4 ++-- apps/client/src/app/components/markets/markets.component.ts | 4 ++-- apps/client/src/app/components/rule/rule.component.ts | 4 ++-- .../user-account-access/user-account-access.component.ts | 4 ++-- apps/client/src/app/core/layout.service.ts | 4 ++-- apps/client/src/app/pages/about/about-page.component.ts | 4 ++-- apps/client/src/app/pages/accounts/accounts-page.component.ts | 4 ++-- apps/client/src/app/pages/admin/admin-page.component.ts | 4 ++-- apps/client/src/app/pages/faq/faq-page.component.ts | 4 ++-- apps/client/src/app/pages/home/home-page.component.ts | 4 ++-- apps/client/src/app/pages/landing/landing-page.component.ts | 4 ++-- .../pages/portfolio/activities/activities-page.component.ts | 4 ++-- .../import-activities-dialog.component.ts | 4 ++-- .../pages/portfolio/allocations/allocations-page.component.ts | 4 ++-- .../app/pages/portfolio/analysis/analysis-page.component.ts | 4 ++-- .../src/app/pages/portfolio/portfolio-page.component.ts | 4 ++-- apps/client/src/app/pages/register/register-page.component.ts | 4 ++-- .../src/app/pages/resources/resources-page.component.ts | 4 ++-- .../src/app/pages/user-account/user-account-page.component.ts | 4 ++-- apps/client/src/app/pages/zen/zen-page.component.ts | 4 ++-- apps/client/src/app/services/user/user.service.ts | 4 ++-- 29 files changed, 58 insertions(+), 58 deletions(-) diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index dbe616dac..0a9be3a75 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -67,7 +67,7 @@ export class GfAppComponent implements OnInit { private readonly changeDetectorRef = inject(ChangeDetectorRef); private readonly dataService = inject(DataService); private readonly destroyRef = inject(DestroyRef); - private readonly deviceService = inject(DeviceDetectorService); + private readonly deviceDetectorService = inject(DeviceDetectorService); private readonly dialog = inject(MatDialog); private readonly document = inject(DOCUMENT); private readonly impersonationStorageService = inject( @@ -104,7 +104,7 @@ export class GfAppComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.info = this.dataService.fetchInfo(); this.impersonationStorageService diff --git a/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts b/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts index fd96c94fc..0abe9ea0f 100644 --- a/apps/client/src/app/components/admin-market-data/admin-market-data.component.ts +++ b/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 dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private route: ActivatedRoute, private router: Router, @@ -272,7 +272,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit { const { benchmarks } = this.dataService.fetchInfo(); this.benchmarks = benchmarks; - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.selection = new SelectionModel(true); } diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.ts b/apps/client/src/app/components/admin-platform/admin-platform.component.ts index b8f2af789..1c117b983 100644 --- a/apps/client/src/app/components/admin-platform/admin-platform.component.ts +++ b/apps/client/src/app/components/admin-platform/admin-platform.component.ts @@ -68,7 +68,7 @@ export class GfAdminPlatformComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private notificationService: NotificationService, private route: ActivatedRoute, @@ -97,7 +97,7 @@ export class GfAdminPlatformComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.fetchPlatforms(); } diff --git a/apps/client/src/app/components/admin-tag/admin-tag.component.ts b/apps/client/src/app/components/admin-tag/admin-tag.component.ts index 506736156..56544f784 100644 --- a/apps/client/src/app/components/admin-tag/admin-tag.component.ts +++ b/apps/client/src/app/components/admin-tag/admin-tag.component.ts @@ -65,7 +65,7 @@ export class GfAdminTagComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private notificationService: NotificationService, private route: ActivatedRoute, @@ -94,7 +94,7 @@ export class GfAdminTagComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.fetchTags(); } diff --git a/apps/client/src/app/components/admin-users/admin-users.component.ts b/apps/client/src/app/components/admin-users/admin-users.component.ts index 874bbc1db..fa9d58956 100644 --- a/apps/client/src/app/components/admin-users/admin-users.component.ts +++ b/apps/client/src/app/components/admin-users/admin-users.component.ts @@ -98,7 +98,7 @@ export class GfAdminUsersComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private impersonationStorageService: ImpersonationStorageService, private notificationService: NotificationService, @@ -106,7 +106,7 @@ export class GfAdminUsersComponent implements OnInit { private router: Router, private userService: UserService ) { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.info = this.dataService.fetchInfo(); this.hasPermissionForSubscription = hasPermission( diff --git a/apps/client/src/app/components/home-holdings/home-holdings.component.ts b/apps/client/src/app/components/home-holdings/home-holdings.component.ts index 19a48ccd8..61a8935eb 100644 --- a/apps/client/src/app/components/home-holdings/home-holdings.component.ts +++ b/apps/client/src/app/components/home-holdings/home-holdings.component.ts @@ -74,7 +74,7 @@ export class GfHomeHoldingsComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private impersonationStorageService: ImpersonationStorageService, private router: Router, private userService: UserService @@ -83,7 +83,7 @@ export class GfHomeHoldingsComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/components/home-market/home-market.component.ts b/apps/client/src/app/components/home-market/home-market.component.ts index 2ddb89408..cb645f2ef 100644 --- a/apps/client/src/app/components/home-market/home-market.component.ts +++ b/apps/client/src/app/components/home-market/home-market.component.ts @@ -50,10 +50,10 @@ export class GfHomeMarketComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private userService: UserService ) { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.info = this.dataService.fetchInfo(); this.userService.stateChanged diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 58284d27d..e134ad6b1 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -65,7 +65,7 @@ export class GfHomeOverviewComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private impersonationStorageService: ImpersonationStorageService, private layoutService: LayoutService, private userService: UserService @@ -87,7 +87,7 @@ export class GfHomeOverviewComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.showDetails = !this.user.settings.isRestrictedView && diff --git a/apps/client/src/app/components/home-summary/home-summary.component.ts b/apps/client/src/app/components/home-summary/home-summary.component.ts index 719cfbd29..60960480d 100644 --- a/apps/client/src/app/components/home-summary/home-summary.component.ts +++ b/apps/client/src/app/components/home-summary/home-summary.component.ts @@ -43,7 +43,7 @@ export class GfHomeSummaryComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private impersonationStorageService: ImpersonationStorageService, private userService: UserService ) { @@ -71,7 +71,7 @@ export class GfHomeSummaryComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/components/markets/markets.component.ts b/apps/client/src/app/components/markets/markets.component.ts index 4214ee989..d2f64f3fc 100644 --- a/apps/client/src/app/components/markets/markets.component.ts +++ b/apps/client/src/app/components/markets/markets.component.ts @@ -58,10 +58,10 @@ export class GfMarketsComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private userService: UserService ) { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.userService.stateChanged .pipe(takeUntilDestroyed(this.destroyRef)) diff --git a/apps/client/src/app/components/rule/rule.component.ts b/apps/client/src/app/components/rule/rule.component.ts index 23f870ff3..6dcbaf1ff 100644 --- a/apps/client/src/app/components/rule/rule.component.ts +++ b/apps/client/src/app/components/rule/rule.component.ts @@ -61,7 +61,7 @@ export class GfRuleComponent implements OnInit { private deviceType: string; public constructor( private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog ) { addIcons({ @@ -75,7 +75,7 @@ export class GfRuleComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } public onCustomizeRule(rule: PortfolioReportRule) { diff --git a/apps/client/src/app/components/user-account-access/user-account-access.component.ts b/apps/client/src/app/components/user-account-access/user-account-access.component.ts index f8620c745..e6686e80f 100644 --- a/apps/client/src/app/components/user-account-access/user-account-access.component.ts +++ b/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 dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private formBuilder: FormBuilder, private notificationService: NotificationService, @@ -123,7 +123,7 @@ export class GfUserAccountAccessComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.update(); } diff --git a/apps/client/src/app/core/layout.service.ts b/apps/client/src/app/core/layout.service.ts index fd435acdb..2624c4dd6 100644 --- a/apps/client/src/app/core/layout.service.ts +++ b/apps/client/src/app/core/layout.service.ts @@ -16,12 +16,12 @@ export class LayoutService { private shouldReloadSubject = new Subject(); public constructor( - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private notificationService: NotificationService ) { this.shouldReloadContent$ = this.shouldReloadSubject.asObservable(); - const deviceType = this.deviceService.getDeviceInfo().deviceType; + const deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.notificationService.setDialogWidth( deviceType === 'mobile' diff --git a/apps/client/src/app/pages/about/about-page.component.ts b/apps/client/src/app/pages/about/about-page.component.ts index 1e749d1cd..b23377f3c 100644 --- a/apps/client/src/app/pages/about/about-page.component.ts +++ b/apps/client/src/app/pages/about/about-page.component.ts @@ -44,7 +44,7 @@ export class AboutPageComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private userService: UserService ) { const { globalPermissions } = this.dataService.fetchInfo(); @@ -114,6 +114,6 @@ export class AboutPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/pages/accounts/accounts-page.component.ts b/apps/client/src/app/pages/accounts/accounts-page.component.ts index fdc78a8c4..08513ef3e 100644 --- a/apps/client/src/app/pages/accounts/accounts-page.component.ts +++ b/apps/client/src/app/pages/accounts/accounts-page.component.ts @@ -58,7 +58,7 @@ export class GfAccountsPageComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private impersonationStorageService: ImpersonationStorageService, private notificationService: NotificationService, @@ -95,7 +95,7 @@ export class GfAccountsPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/pages/admin/admin-page.component.ts b/apps/client/src/app/pages/admin/admin-page.component.ts index 66312ef33..8ec094915 100644 --- a/apps/client/src/app/pages/admin/admin-page.component.ts +++ b/apps/client/src/app/pages/admin/admin-page.component.ts @@ -26,7 +26,7 @@ export class AdminPageComponent implements OnInit { public deviceType: string; public tabs: TabConfiguration[] = []; - public constructor(private deviceService: DeviceDetectorService) { + public constructor(private deviceDetectorService: DeviceDetectorService) { addIcons({ flashOutline, peopleOutline, @@ -37,7 +37,7 @@ export class AdminPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.tabs = [ { diff --git a/apps/client/src/app/pages/faq/faq-page.component.ts b/apps/client/src/app/pages/faq/faq-page.component.ts index 83171254a..8ae074bee 100644 --- a/apps/client/src/app/pages/faq/faq-page.component.ts +++ b/apps/client/src/app/pages/faq/faq-page.component.ts @@ -26,7 +26,7 @@ export class GfFaqPageComponent implements OnInit { public constructor( private dataService: DataService, - private deviceService: DeviceDetectorService + private deviceDetectorService: DeviceDetectorService ) { const { globalPermissions } = this.dataService.fetchInfo(); @@ -58,6 +58,6 @@ export class GfFaqPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/pages/home/home-page.component.ts b/apps/client/src/app/pages/home/home-page.component.ts index 5130c8166..958428331 100644 --- a/apps/client/src/app/pages/home/home-page.component.ts +++ b/apps/client/src/app/pages/home/home-page.component.ts @@ -42,7 +42,7 @@ export class GfHomePageComponent implements OnInit { public constructor( private changeDetectorRef: ChangeDetectorRef, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private impersonationStorageService: ImpersonationStorageService, private userService: UserService ) { @@ -104,7 +104,7 @@ export class GfHomePageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/pages/landing/landing-page.component.ts b/apps/client/src/app/pages/landing/landing-page.component.ts index 9ee9cceb4..2255881c3 100644 --- a/apps/client/src/app/pages/landing/landing-page.component.ts +++ b/apps/client/src/app/pages/landing/landing-page.component.ts @@ -108,7 +108,7 @@ export class GfLandingPageComponent implements OnInit { public constructor( private dataService: DataService, - private deviceService: DeviceDetectorService + private deviceDetectorService: DeviceDetectorService ) { const { countriesOfSubscribers = [], @@ -150,6 +150,6 @@ export class GfLandingPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts index acd6cba10..e43af52c9 100644 --- a/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts +++ b/apps/client/src/app/pages/portfolio/activities/activities-page.component.ts @@ -72,7 +72,7 @@ export class GfActivitiesPageComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private icsService: IcsService, private impersonationStorageService: ImpersonationStorageService, @@ -112,7 +112,7 @@ export class GfActivitiesPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts b/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts index 00f0508fe..10df36857 100644 --- a/apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts +++ b/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, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private formBuilder: FormBuilder, public dialogRef: MatDialogRef, private importActivitiesService: ImportActivitiesService, @@ -119,7 +119,7 @@ export class GfImportActivitiesDialogComponent { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.stepperOrientation = this.deviceType === 'mobile' ? 'vertical' : 'horizontal'; diff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts index b0282c937..ebfd336d3 100644 --- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts +++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts @@ -127,7 +127,7 @@ export class GfAllocationsPageComponent implements OnInit { private changeDetectorRef: ChangeDetectorRef, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private impersonationStorageService: ImpersonationStorageService, private route: ActivatedRoute, @@ -144,7 +144,7 @@ export class GfAllocationsPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts b/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts index 47845ea6f..03fd0767a 100644 --- a/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts +++ b/apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts @@ -106,7 +106,7 @@ export class GfAnalysisPageComponent implements OnInit { private clipboard: Clipboard, private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private impersonationStorageService: ImpersonationStorageService, private snackBar: MatSnackBar, private userService: UserService @@ -129,7 +129,7 @@ export class GfAnalysisPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.impersonationStorageService .onChangeHasImpersonation() diff --git a/apps/client/src/app/pages/portfolio/portfolio-page.component.ts b/apps/client/src/app/pages/portfolio/portfolio-page.component.ts index eb4935127..dca39c4a6 100644 --- a/apps/client/src/app/pages/portfolio/portfolio-page.component.ts +++ b/apps/client/src/app/pages/portfolio/portfolio-page.component.ts @@ -36,7 +36,7 @@ export class PortfolioPageComponent implements OnInit { public constructor( private changeDetectorRef: ChangeDetectorRef, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private userService: UserService ) { this.userService.stateChanged @@ -88,6 +88,6 @@ export class PortfolioPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/pages/register/register-page.component.ts b/apps/client/src/app/pages/register/register-page.component.ts index db199143f..ecc83d8f3 100644 --- a/apps/client/src/app/pages/register/register-page.component.ts +++ b/apps/client/src/app/pages/register/register-page.component.ts @@ -40,7 +40,7 @@ export class GfRegisterPageComponent implements OnInit { public constructor( private dataService: DataService, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private router: Router, private tokenStorageService: TokenStorageService, @@ -54,7 +54,7 @@ export class GfRegisterPageComponent implements OnInit { public ngOnInit() { const { globalPermissions } = this.dataService.fetchInfo(); - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.hasPermissionForAuthGoogle = hasPermission( globalPermissions, diff --git a/apps/client/src/app/pages/resources/resources-page.component.ts b/apps/client/src/app/pages/resources/resources-page.component.ts index c25ef00d6..016f92fa8 100644 --- a/apps/client/src/app/pages/resources/resources-page.component.ts +++ b/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 }); } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/pages/user-account/user-account-page.component.ts b/apps/client/src/app/pages/user-account/user-account-page.component.ts index 24c150408..7d5af5423 100644 --- a/apps/client/src/app/pages/user-account/user-account-page.component.ts +++ b/apps/client/src/app/pages/user-account/user-account-page.component.ts @@ -33,7 +33,7 @@ export class GfUserAccountPageComponent implements OnInit { public constructor( private changeDetectorRef: ChangeDetectorRef, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private userService: UserService ) { this.userService.stateChanged @@ -70,6 +70,6 @@ export class GfUserAccountPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/pages/zen/zen-page.component.ts b/apps/client/src/app/pages/zen/zen-page.component.ts index 633f15885..b3c14b4e0 100644 --- a/apps/client/src/app/pages/zen/zen-page.component.ts +++ b/apps/client/src/app/pages/zen/zen-page.component.ts @@ -31,7 +31,7 @@ export class GfZenPageComponent implements OnInit { public constructor( private changeDetectorRef: ChangeDetectorRef, private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private userService: UserService ) { this.userService.stateChanged @@ -60,6 +60,6 @@ export class GfZenPageComponent implements OnInit { } public ngOnInit() { - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } } diff --git a/apps/client/src/app/services/user/user.service.ts b/apps/client/src/app/services/user/user.service.ts index e92eb6bd4..caeea775e 100644 --- a/apps/client/src/app/services/user/user.service.ts +++ b/apps/client/src/app/services/user/user.service.ts @@ -26,7 +26,7 @@ export class UserService extends ObservableStore { public constructor( private destroyRef: DestroyRef, - private deviceService: DeviceDetectorService, + private deviceDetectorService: DeviceDetectorService, private dialog: MatDialog, private http: HttpClient, private webAuthnService: WebAuthnService @@ -35,7 +35,7 @@ export class UserService extends ObservableStore { this.setState({ user: undefined }, UserStoreActions.Initialize); - this.deviceType = this.deviceService.getDeviceInfo().deviceType; + this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; } public get(force = false) {