mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-24 22:28:31 +00:00
Checks for user
This commit is contained in:
parent
ef15c712ba
commit
6784b6ca1e
@ -39,7 +39,11 @@ export class NavbarComponent {
|
|||||||
if (isSignedIn()) {
|
if (isSignedIn()) {
|
||||||
this.api.getUser().subscribe(u => {
|
this.api.getUser().subscribe(u => {
|
||||||
this.user = u;
|
this.user = u;
|
||||||
|
|
||||||
|
if (this.user && this.user.uid) {
|
||||||
this.googleAnalyticsService.setUser(this.user.uid);
|
this.googleAnalyticsService.setUser(this.user.uid);
|
||||||
|
}
|
||||||
|
|
||||||
this._loadNavLinks();
|
this._loadNavLinks();
|
||||||
}, error => {
|
}, error => {
|
||||||
localStorage.removeItem('token');
|
localStorage.removeItem('token');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user