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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
29 changed files with
58 additions and
58 deletions
-
apps/client/src/app/app.component.ts
-
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts
-
apps/client/src/app/components/admin-platform/admin-platform.component.ts
-
apps/client/src/app/components/admin-tag/admin-tag.component.ts
-
apps/client/src/app/components/admin-users/admin-users.component.ts
-
apps/client/src/app/components/home-holdings/home-holdings.component.ts
-
apps/client/src/app/components/home-market/home-market.component.ts
-
apps/client/src/app/components/home-overview/home-overview.component.ts
-
apps/client/src/app/components/home-summary/home-summary.component.ts
-
apps/client/src/app/components/markets/markets.component.ts
-
apps/client/src/app/components/rule/rule.component.ts
-
apps/client/src/app/components/user-account-access/user-account-access.component.ts
-
apps/client/src/app/core/layout.service.ts
-
apps/client/src/app/pages/about/about-page.component.ts
-
apps/client/src/app/pages/accounts/accounts-page.component.ts
-
apps/client/src/app/pages/admin/admin-page.component.ts
-
apps/client/src/app/pages/faq/faq-page.component.ts
-
apps/client/src/app/pages/home/home-page.component.ts
-
apps/client/src/app/pages/landing/landing-page.component.ts
-
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
-
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
-
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
-
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts
-
apps/client/src/app/pages/portfolio/portfolio-page.component.ts
-
apps/client/src/app/pages/register/register-page.component.ts
-
apps/client/src/app/pages/resources/resources-page.component.ts
-
apps/client/src/app/pages/user-account/user-account-page.component.ts
-
apps/client/src/app/pages/zen/zen-page.component.ts
-
apps/client/src/app/services/user/user.service.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 |
|
|
|
|
|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -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( |
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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 && |
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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)) |
|
|
|
|
|
|
|
@ -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) { |
|
|
|
|
|
|
|
@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -16,12 +16,12 @@ export class LayoutService { |
|
|
|
private shouldReloadSubject = new Subject<void>(); |
|
|
|
|
|
|
|
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' |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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 = [ |
|
|
|
{ |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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<GfImportActivitiesDialogComponent>, |
|
|
|
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'; |
|
|
|
|
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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() |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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, |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ export class UserService extends ObservableStore<UserStoreState> { |
|
|
|
|
|
|
|
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<UserStoreState> { |
|
|
|
|
|
|
|
this.setState({ user: undefined }, UserStoreActions.Initialize); |
|
|
|
|
|
|
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType; |
|
|
|
this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; |
|
|
|
} |
|
|
|
|
|
|
|
public get(force = false) { |
|
|
|
|