forked from MapComplete/MapComplete
First steps for a delete button
This commit is contained in:
parent
b7798a470c
commit
985e97d43b
10 changed files with 246 additions and 75 deletions
|
@ -13,6 +13,7 @@ export default class UserDetails {
|
|||
|
||||
public loggedIn = false;
|
||||
public name = "Not logged in";
|
||||
public uid: number;
|
||||
public csCount = 0;
|
||||
public img: string;
|
||||
public unreadMessages = 0;
|
||||
|
@ -167,6 +168,7 @@ export class OsmConnection {
|
|||
data.loggedIn = true;
|
||||
console.log("Login completed, userinfo is ", userInfo);
|
||||
data.name = userInfo.getAttribute('display_name');
|
||||
data.uid= Number(userInfo.getAttribute("id"))
|
||||
data.csCount = userInfo.getElementsByTagName("changesets")[0].getAttribute("count");
|
||||
|
||||
data.img = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue