Fix: bug submitted comments on notes twice

This commit is contained in:
Pieter Vander Vennet 2024-04-23 20:54:17 +02:00
parent 9dffca8cdf
commit 5be4b9d1fb
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "mapcomplete",
"version": "0.42.0",
"version": "0.42.1",
"repository": "https://github.com/pietervdvn/MapComplete",
"description": "A small website to edit OSM easily",
"bugs": "https://github.com/pietervdvn/MapComplete/issues",

View file

@ -76,7 +76,7 @@
<div class="flex flex-col">
{#if $txt?.length > 0}
<button class="primary flex" on:click={() => addComment()}>
<button class="primary flex" on:click|preventDefault={() => addComment()}>
<!-- Add a comment -->
<Speech_bubble class="h-7 w-7 pr-2" />
<Tr t={t.addCommentPlaceholder} />
@ -88,7 +88,7 @@
{/if}
{#if !$isClosed}
<button class="flex items-center" on:click={() => closeNote()}>
<button class="flex items-center" on:click|preventDefault={() => closeNote()}>
<Resolved class="h-8 w-8 pr-2" />
<!-- Close note -->
{#if $txt === undefined || $txt === ""}
@ -98,7 +98,7 @@
{/if}
</button>
{:else}
<button class="flex items-center" on:click={() => reopenNote()}>
<button class="flex items-center" on:click|preventDefault={() => reopenNote()}>
<!-- Reopen -->
<Note class="h-7 w-7 pr-2" />
{#if $txt === undefined || $txt === ""}