5
5
import { Component , OnInit } from '@angular/core' ;
6
6
import { MatDialog } from '@angular/material/dialog' ;
7
7
import { ReportIssueDialogComponent } from '../report-issue-dialog/report-issue-dialog.component' ;
8
- import { AuthService , StoreService } from '@perun-web-apps/perun/services' ;
8
+ import { AuthService , InitAuthService , StoreService } from '@perun-web-apps/perun/services' ;
9
9
import { getDefaultDialogConfig } from '@perun-web-apps/perun/utils' ;
10
10
import { TranslateService } from '@ngx-translate/core' ;
11
11
import { UtilsService } from '@perun-web-apps/perun/openapi' ;
@@ -40,7 +40,8 @@ export class PerunFooterComponent implements OnInit {
40
40
private translateService : TranslateService ,
41
41
private utilsService : UtilsService ,
42
42
private dialog : MatDialog ,
43
- private authService : AuthService
43
+ private authService : AuthService ,
44
+ private initAuthService : InitAuthService
44
45
) { }
45
46
46
47
ngOnInit ( ) : void {
@@ -51,7 +52,7 @@ export class PerunFooterComponent implements OnInit {
51
52
this . footerColumns = this . storeService . getProperty ( 'footer' ) . columns ;
52
53
53
54
this . guiVersion = require ( '../../../../../../package.json' ) . version as string ;
54
- if ( this . authService . isLoggedIn ( ) ) {
55
+ if ( this . authService . isLoggedIn ( ) || this . initAuthService . isServiceAccess ( ) ) {
55
56
this . utilsService . getPerunStatus ( ) . subscribe ( ( val ) => {
56
57
const versionString = val [ 0 ] ;
57
58
this . backendVersion = versionString . substring ( versionString . indexOf ( ':' ) + 2 ) ;
@@ -66,7 +67,7 @@ export class PerunFooterComponent implements OnInit {
66
67
this . columnContentHeight = col . elements . length * 25 ;
67
68
}
68
69
}
69
- this . copyrightItems = this . storeService . getProperty ( 'footer' ) . copyrightItems ;
70
+ this . copyrightItems = this . storeService . getProperty ( 'footer' ) . copyright_items ;
70
71
}
71
72
72
73
openDialog ( name : string ) : void {
0 commit comments