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
960 B
30 lines
960 B
import { DataService } from '@ghostfolio/client/services/data.service';
|
|
import { InfoItem } from '@ghostfolio/common/interfaces';
|
|
import { hasPermission, permissions } from '@ghostfolio/common/permissions';
|
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'gf-resources-glossary',
|
|
styleUrls: ['./resources-glossary.component.scss'],
|
|
templateUrl: './resources-glossary.component.html'
|
|
})
|
|
export class ResourcesGlossaryPageComponent implements OnInit {
|
|
public hasPermissionForSubscription: boolean;
|
|
public info: InfoItem;
|
|
public routerLinkResourcesPersonalFinanceTools = [
|
|
'/' + $localize`:snake-case:resources`,
|
|
'personal-finance-tools'
|
|
];
|
|
|
|
public constructor(private dataService: DataService) {
|
|
this.info = this.dataService.fetchInfo();
|
|
}
|
|
|
|
public ngOnInit() {
|
|
this.hasPermissionForSubscription = hasPermission(
|
|
this.info?.globalPermissions,
|
|
permissions.enableSubscription
|
|
);
|
|
}
|
|
}
|
|
|