forked from MapComplete/MapComplete
Fix: bug submitted comments on notes twice
This commit is contained in:
parent
9dffca8cdf
commit
5be4b9d1fb
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mapcomplete",
|
"name": "mapcomplete",
|
||||||
"version": "0.42.0",
|
"version": "0.42.1",
|
||||||
"repository": "https://github.com/pietervdvn/MapComplete",
|
"repository": "https://github.com/pietervdvn/MapComplete",
|
||||||
"description": "A small website to edit OSM easily",
|
"description": "A small website to edit OSM easily",
|
||||||
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
"bugs": "https://github.com/pietervdvn/MapComplete/issues",
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
|
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
{#if $txt?.length > 0}
|
{#if $txt?.length > 0}
|
||||||
<button class="primary flex" on:click={() => addComment()}>
|
<button class="primary flex" on:click|preventDefault={() => addComment()}>
|
||||||
<!-- Add a comment -->
|
<!-- Add a comment -->
|
||||||
<Speech_bubble class="h-7 w-7 pr-2" />
|
<Speech_bubble class="h-7 w-7 pr-2" />
|
||||||
<Tr t={t.addCommentPlaceholder} />
|
<Tr t={t.addCommentPlaceholder} />
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if !$isClosed}
|
{#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" />
|
<Resolved class="h-8 w-8 pr-2" />
|
||||||
<!-- Close note -->
|
<!-- Close note -->
|
||||||
{#if $txt === undefined || $txt === ""}
|
{#if $txt === undefined || $txt === ""}
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
{:else}
|
||||||
<button class="flex items-center" on:click={() => reopenNote()}>
|
<button class="flex items-center" on:click|preventDefault={() => reopenNote()}>
|
||||||
<!-- Reopen -->
|
<!-- Reopen -->
|
||||||
<Note class="h-7 w-7 pr-2" />
|
<Note class="h-7 w-7 pr-2" />
|
||||||
{#if $txt === undefined || $txt === ""}
|
{#if $txt === undefined || $txt === ""}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue