mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
import { DataService } from '@ghostfolio/client/services/data.service';
|
|
import { InfoItem } from '@ghostfolio/common/interfaces';
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
|
|
import { publicRoutes } from '@ghostfolio/common/routes/routes';
|
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'gf-resources-glossary',
|
|
styleUrls: ['./resources-glossary.component.scss'],
|
|
templateUrl: './resources-glossary.component.html',
|
|
standalone: false
|
|
})
|
|
export class ResourcesGlossaryPageComponent implements OnInit {
|
|
public hasPermissionForSubscription: boolean;
|
|
public info: InfoItem;
|
|
public routerLinkResourcesPersonalFinanceTools =
|
|
publicRoutes.resources.subRoutes.personalFinanceTools.routerLink;
|
|
|
|
public constructor(private dataService: DataService) {
|
|
this.info = this.dataService.fetchInfo();
|
|
}
|
|
|
|
public ngOnInit() {
|
|
this.hasPermissionForSubscription = hasPermission(
|
|
this.info?.globalPermissions,
|
|
permissions.enableSubscription
|
|
);
|
|
}
|
|
}
|
|
|