forked from MapComplete/MapComplete
Improvements to the user information panel
This commit is contained in:
parent
49210f2a28
commit
a85fe85358
10 changed files with 62 additions and 34 deletions
|
@ -14,7 +14,7 @@ export default class UserDetails {
|
|||
public name = "Not logged in"
|
||||
public uid: number
|
||||
public csCount = 0
|
||||
public img: string
|
||||
public img?: string
|
||||
public unreadMessages = 0
|
||||
public totalMessages: number = 0
|
||||
public home: { lon: number; lat: number }
|
||||
|
@ -257,7 +257,6 @@ export class OsmConnection {
|
|||
if (imgEl !== undefined && imgEl[0] !== undefined) {
|
||||
data.img = imgEl[0].getAttribute("href")
|
||||
}
|
||||
data.img = data.img ?? Img.AsData(Svg.person_img)
|
||||
|
||||
const description = userInfo.getElementsByTagName("description")
|
||||
if (description !== undefined && description[0] !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue