forked from MapComplete/MapComplete
Chore: housekeeping
This commit is contained in:
parent
18e3e6f806
commit
a3a7e74f56
94 changed files with 1273 additions and 1080 deletions
|
@ -49,7 +49,7 @@ export default class NoteCommentElement extends Combine {
|
|||
}
|
||||
|
||||
const userinfo = Stores.FromPromise(
|
||||
Utils.downloadJsonCached<{user: { img: { href: string } }}>(
|
||||
Utils.downloadJsonCached<{ user: { img: { href: string } } }>(
|
||||
"https://api.openstreetmap.org/api/0.6/user/" + comment.uid,
|
||||
24 * 60 * 60 * 1000
|
||||
)
|
||||
|
@ -122,7 +122,7 @@ export default class NoteCommentElement extends Combine {
|
|||
public static addCommentTo(
|
||||
txt: string,
|
||||
tags: UIEventSource<any>,
|
||||
state: { osmConnection: {userDetails: Store<{ name: string, uid: number }>} }
|
||||
state: { osmConnection: { userDetails: Store<{ name: string; uid: number }> } }
|
||||
) {
|
||||
const comments: any[] = JSON.parse(tags.data["comments"])
|
||||
const username = state.osmConnection.userDetails.data.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue