|
|
@ -34,6 +34,7 @@ export class AppComponent implements OnDestroy, OnInit {
|
|
|
|
public deviceType: string;
|
|
|
|
public deviceType: string;
|
|
|
|
public hasPermissionForBlog: boolean;
|
|
|
|
public hasPermissionForBlog: boolean;
|
|
|
|
public hasPermissionForSubscription: boolean;
|
|
|
|
public hasPermissionForSubscription: boolean;
|
|
|
|
|
|
|
|
public hasPermissionToAccessFearAndGreedIndex: boolean;
|
|
|
|
public info: InfoItem;
|
|
|
|
public info: InfoItem;
|
|
|
|
public pageTitle: string;
|
|
|
|
public pageTitle: string;
|
|
|
|
public user: User;
|
|
|
|
public user: User;
|
|
|
@ -69,6 +70,11 @@ export class AppComponent implements OnDestroy, OnInit {
|
|
|
|
permissions.enableSubscription
|
|
|
|
permissions.enableSubscription
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.hasPermissionToAccessFearAndGreedIndex = hasPermission(
|
|
|
|
|
|
|
|
this.info?.globalPermissions,
|
|
|
|
|
|
|
|
permissions.enableFearAndGreedIndex
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
this.router.events
|
|
|
|
this.router.events
|
|
|
|
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
|
|
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
|
|
.subscribe(() => {
|
|
|
|
.subscribe(() => {
|
|
|
|