Revision 57948
Added by Konstantinos Triantafyllou over 4 years ago
app.component.ts | ||
---|---|---|
19 | 19 |
`], |
20 | 20 |
template: ` |
21 | 21 |
<div [class]="(community)?(community.id +'App'):'connectApp'"> |
22 |
<navbar *ngIf="properties && showMenu && !community && loginCheck" portal="monitor" [onlyTop]=false
|
|
22 |
<navbar *ngIf="properties && showMenu && !community" portal="monitor" [onlyTop]=false |
|
23 | 23 |
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user" |
24 | 24 |
[showMenu]=showMenu [properties]="properties" [showHomeMenuItem]="true"></navbar> |
25 |
<navbar *ngIf="properties && showMenu && community && loginCheck" portal="monitor" [onlyTop]=false [communityId]="community.id"
|
|
25 |
<navbar *ngIf="properties && showMenu && community" portal="monitor" [onlyTop]=false [communityId]="community.id" |
|
26 | 26 |
[userMenuItems]=userMenuItems [menuItems]=menuItems [user]="user" |
27 | 27 |
[community]=community [showMenu]=showMenu [properties]="properties" [enableSearch]="true" |
28 | 28 |
[showHomeMenuItem]="true"></navbar> |
... | ... | |
67 | 67 |
subscriberOfCommunities = false; |
68 | 68 |
managerOfCommunities = false; |
69 | 69 |
user: User; |
70 |
loginCheck: boolean = false; |
|
71 | 70 |
|
72 | 71 |
// community: {id:string, name:string, logoUrl:string}; |
73 | 72 |
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, |
... | ... | |
86 | 85 |
this.properties = this.propertiesService.envSpecific; |
87 | 86 |
var communityId: string = ""; |
88 | 87 |
this._communitiesService.updateCommunities(this.properties, this.properties.communitiesAPI); |
89 |
this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe( user => {
|
|
88 |
this.userManagementService.getUserInfo().subscribe( user => { |
|
90 | 89 |
this.user = user; |
91 |
this.loginCheck = true; |
|
92 | 90 |
if (this.properties.environment == "development") { |
93 | 91 |
this.showMenu = false; |
94 | 92 |
this.route.queryParams.subscribe(params => { |
Also available in: Unified diff
[Monitor | Trunk]: Remove url from get user info