11import { Injectable } from "@angular/core" ;
22import { Organisation , OrganisationGetMinimalResponse } from "@app/admin/organisation/organisation.model" ;
33import { OrganisationService } from "@app/admin/organisation/organisation.service" ;
4- import { UserMinimal } from "@app/admin/users/user-minimal.model" ;
5- import { UserMinimalService } from "@app/admin/users/user-minimal.service" ;
64import { AuthService , CurrentUserInfoResponse } from "@auth/auth.service" ;
75import { BehaviorSubject , Observable } from "rxjs" ;
86import { tap } from "rxjs/operators" ;
@@ -11,17 +9,13 @@ import { tap } from "rxjs/operators";
119 providedIn : "root" ,
1210} )
1311export class SharedVariableService {
14- constructor (
15- private authService : AuthService ,
16- private organisationService : OrganisationService ,
17- private userMinimalService : UserMinimalService
18- ) {
19- this . routerInfo = new BehaviorSubject < number > ( 0 ) ;
20- }
2112 private selectedOrganisationId : number ;
2213 private routerInfo : BehaviorSubject < number > ;
2314 private organizationInfo : Organisation [ ] ;
24- private userMinimalList : UserMinimal [ ] ;
15+
16+ constructor ( private authService : AuthService , private organisationService : OrganisationService ) {
17+ this . routerInfo = new BehaviorSubject < number > ( 0 ) ;
18+ }
2519
2620 getValue ( ) : Observable < number > {
2721 return this . routerInfo . asObservable ( ) ;
@@ -67,10 +61,6 @@ export class SharedVariableService {
6761 return this . organizationInfo ;
6862 }
6963
70- getCurrentOrgRole ( ) : string {
71- return "ss" ;
72- }
73-
7464 getUsername ( ) : string {
7565 return this . getUserInfo ( ) ?. user ?. name ;
7666 }
0 commit comments