forked from MapComplete/MapComplete
Chore: housekeeping
This commit is contained in:
parent
18e3e6f806
commit
a3a7e74f56
94 changed files with 1273 additions and 1080 deletions
|
|
@ -64,7 +64,9 @@ export class CloseNoteButton implements SpecialVisualization {
|
|||
zoomButton: string
|
||||
} = <any>Utils.ParseVisArgs(this.args, args)
|
||||
|
||||
let icon: BaseUIElement = new SvelteUIElement(Icon, {icon: params.icon ?? "checkmark.svg"})
|
||||
let icon: BaseUIElement = new SvelteUIElement(Icon, {
|
||||
icon: params.icon ?? "checkmark.svg",
|
||||
})
|
||||
let textToShow = t.closeNote
|
||||
if ((params.text ?? "") !== "") {
|
||||
textToShow = Translations.T(args[0])
|
||||
|
|
|
|||
|
|
@ -110,7 +110,10 @@
|
|||
</SubtleButton>
|
||||
</div>
|
||||
{:else}
|
||||
<form class="low-interaction rounded-sm p-2 flex flex-col" on:submit|preventDefault={uploadNote}>
|
||||
<form
|
||||
class="low-interaction flex flex-col rounded-sm p-2"
|
||||
on:submit|preventDefault={uploadNote}
|
||||
>
|
||||
<label class="neutral-label">
|
||||
<Tr t={Translations.t.notes.createNoteIntro} />
|
||||
<div class="w-full p-1">
|
||||
|
|
|
|||
|
|
@ -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