@@ -13,8 +13,8 @@ import { Title } from '@angular/platform-browser';
13
13
import {
14
14
CheckUserRolesPipe ,
15
15
SsoActiveLangService ,
16
- SsoActiveProjectService ,
17
- SsoProjectModel ,
16
+ SsoActiveTenantService ,
17
+ SsoTenantModel ,
18
18
SsoService ,
19
19
TokensService ,
20
20
UserPipe ,
@@ -59,8 +59,8 @@ export class AppComponent implements OnInit {
59
59
availableLangs$ = new BehaviorSubject < LangDefinition [ ] > ( [ ] ) ;
60
60
SsoRoleInterface = SsoRoleInterface ;
61
61
62
- publicProjects $ ?: Observable < SsoProjectModel [ ] | undefined > ;
63
- activePublicProject $ ?: Observable < SsoProjectModel | undefined > ;
62
+ publicTenants $ ?: Observable < SsoTenantModel [ ] | undefined > ;
63
+ activePublicTenant $ ?: Observable < SsoTenantModel | undefined > ;
64
64
65
65
constructor (
66
66
private readonly ssoRestSdkAngularService : SsoRestSdkAngularService ,
@@ -69,7 +69,7 @@ export class AppComponent implements OnInit {
69
69
private readonly translocoService : TranslocoService ,
70
70
private readonly tokensService : TokensService ,
71
71
private readonly ssoActiveLangService : SsoActiveLangService ,
72
- private readonly ssoActiveProjectService : SsoActiveProjectService ,
72
+ private readonly ssoActiveTenantService : SsoActiveTenantService ,
73
73
private readonly titleService : Title ,
74
74
private readonly filesService : FilesService ,
75
75
) {
@@ -78,7 +78,7 @@ export class AppComponent implements OnInit {
78
78
}
79
79
80
80
ngOnInit ( ) {
81
- this . loadAvailablePublicProjects ( ) ;
81
+ this . loadAvailablePublicTenants ( ) ;
82
82
83
83
this . loadAvailableLangs ( ) ;
84
84
this . subscribeToChangeProfile ( ) ;
@@ -94,15 +94,15 @@ export class AppComponent implements OnInit {
94
94
return ( ! value . toLowerCase ( ) . startsWith ( 'http' ) ? this . filesService . getMinioURL ( ) : '' ) + value ;
95
95
}
96
96
97
- setActivePublicProject ( activePublicProject ?: SsoProjectModel ) {
98
- this . ssoActiveProjectService . setActivePublicProject ( activePublicProject ) ;
97
+ setActivePublicTenant ( activePublicTenant ?: SsoTenantModel ) {
98
+ this . ssoActiveTenantService . setActivePublicTenant ( activePublicTenant ) ;
99
99
}
100
100
101
- private loadAvailablePublicProjects ( ) {
102
- this . publicProjects $ = this . ssoActiveProjectService . publicProjects $. asObservable ( ) ;
103
- this . activePublicProject $ = this . ssoActiveProjectService . activePublicProject $. asObservable ( ) ;
101
+ private loadAvailablePublicTenants ( ) {
102
+ this . publicTenants $ = this . ssoActiveTenantService . publicTenants $. asObservable ( ) ;
103
+ this . activePublicTenant $ = this . ssoActiveTenantService . activePublicTenant $. asObservable ( ) ;
104
104
105
- this . ssoActiveProjectService . loadAvailablePublicProjects ( ) ;
105
+ this . ssoActiveTenantService . loadAvailablePublicTenants ( ) ;
106
106
}
107
107
108
108
private subscribeToChangeProfile ( ) {
@@ -143,7 +143,7 @@ export class AppComponent implements OnInit {
143
143
. pipe (
144
144
tap ( ( lang ) => {
145
145
this . lang$ . next ( lang ) ;
146
- this . ssoActiveProjectService . loadAvailablePublicProjects ( ) ;
146
+ this . ssoActiveTenantService . loadAvailablePublicTenants ( ) ;
147
147
} ) ,
148
148
untilDestroyed ( this ) ,
149
149
)
0 commit comments