Revision 57546
Added by Konstantinos Triantafyllou over 4 years ago
community.component.ts | ||
---|---|---|
123 | 123 |
this.url = data.envSpecific.baseLink + this._router.url; |
124 | 124 |
this.seoService.createLinkForCanonicalURL(this.url, false); |
125 | 125 |
this._meta.updateTag({content: this.url}, "property='og:url'"); |
126 |
this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe( user => { |
|
127 |
this.user = user; |
|
126 |
if (typeof document !== 'undefined') { |
|
127 |
this.userManagementService.getUserInfo(this.properties.userInfoUrl).subscribe(user => { |
|
128 |
this.user = user; |
|
129 |
this.loginCheck = true; |
|
130 |
}); |
|
131 |
} else { |
|
132 |
this.user = null; |
|
128 | 133 |
this.loginCheck = true; |
129 |
})
|
|
134 |
} |
|
130 | 135 |
if (this.communityId != null && this.communityId != '') { |
131 | 136 |
this._communityService.getCommunity(this.properties, this.properties.communityAPI + this.communityId).subscribe( |
132 | 137 |
community => { |
Also available in: Unified diff
[Connect]: Add check if isClient to getUserInfo