forked from MapComplete/MapComplete
		
	Add logout button, fix # 23
This commit is contained in:
		
							parent
							
								
									b1775d8184
								
							
						
					
					
						commit
						118a60c805
					
				
					 4 changed files with 113 additions and 7 deletions
				
			
		|  | @ -49,6 +49,9 @@ export class OsmConnection { | |||
| 
 | ||||
|     public LogOut() { | ||||
|         this.auth.logout(); | ||||
|         this.userDetails.data.loggedIn = false; | ||||
|         this.userDetails.ping(); | ||||
|         console.log("Logged out") | ||||
|     } | ||||
| 
 | ||||
|     public AttemptLogin() { | ||||
|  | @ -76,7 +79,7 @@ export class OsmConnection { | |||
| 
 | ||||
|             let data = self.userDetails.data; | ||||
|             data.loggedIn = true; | ||||
|             console.log(userInfo); | ||||
|             console.log("Log incompleted, userinfo is ", userInfo); | ||||
|             data.name = userInfo.getAttribute('display_name'); | ||||
|             data.csCount = userInfo.getElementsByTagName("changesets")[0].getAttribute("count"); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue