|
|
@ -13,18 +13,20 @@ import { |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
import { RouterModule } from '@angular/router'; |
|
|
import { RouterModule } from '@angular/router'; |
|
|
import { IonIcon } from '@ionic/angular/standalone'; |
|
|
import { IonIcon } from '@ionic/angular/standalone'; |
|
|
|
|
|
import { addIcons } from 'ionicons'; |
|
|
|
|
|
import { openOutline } from 'ionicons/icons'; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
changeDetection: ChangeDetectionStrategy.OnPush, |
|
|
imports: [CommonModule, GfLogoComponent, IonIcon, RouterModule], |
|
|
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA], |
|
|
|
|
|
selector: 'gf-footer', |
|
|
selector: 'gf-footer', |
|
|
templateUrl: './footer.component.html', |
|
|
templateUrl: './footer.component.html', |
|
|
styleUrls: ['./footer.component.scss'] |
|
|
styleUrls: ['./footer.component.scss'], |
|
|
|
|
|
imports: [CommonModule, GfLogoComponent, IonIcon, RouterModule], |
|
|
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|
|
}) |
|
|
}) |
|
|
export class GfFooterComponent implements OnChanges { |
|
|
export class GfFooterComponent implements OnChanges { |
|
|
@Input() info: InfoItem; |
|
|
@Input() public info: InfoItem; |
|
|
@Input() user: User; |
|
|
@Input() public user: User; |
|
|
|
|
|
|
|
|
public currentYear = new Date().getFullYear(); |
|
|
public currentYear = new Date().getFullYear(); |
|
|
public hasPermissionForStatistics: boolean; |
|
|
public hasPermissionForStatistics: boolean; |
|
|
@ -47,6 +49,12 @@ export class GfFooterComponent implements OnChanges { |
|
|
public routerLinkPricing = publicRoutes.pricing.routerLink; |
|
|
public routerLinkPricing = publicRoutes.pricing.routerLink; |
|
|
public routerLinkResources = publicRoutes.resources.routerLink; |
|
|
public routerLinkResources = publicRoutes.resources.routerLink; |
|
|
|
|
|
|
|
|
|
|
|
public constructor() { |
|
|
|
|
|
addIcons({ |
|
|
|
|
|
openOutline |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public ngOnChanges() { |
|
|
public ngOnChanges() { |
|
|
this.hasPermissionForStatistics = hasPermission( |
|
|
this.hasPermissionForStatistics = hasPermission( |
|
|
this.info?.globalPermissions, |
|
|
this.info?.globalPermissions, |
|
|
|