Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Handle possible template comment in patch comment body
Sebastian Martinez committed 3 years ago
commit 4e0ffd86191cf96bd4e8a6fa929daa9174c590e1
parent e7a7baca5eb273f1851851dd481666ed1b524c7c
1 file changed +6 -1
modified src/Comment.svelte
@@ -28,6 +28,11 @@
    }
  });

+
  const templateComment = `<!--
+
Please enter a comment message for your patch update. Leaving this
+
blank is also okay.
+
-->`;
+

  $: source = profile?.avatar || comment.author.urn;
  $: title =
    profile?.name ||
@@ -91,7 +96,7 @@
      <ReactionSelector on:select={selectReaction} />
    </div>
    <div class="card-body">
-
      {#if comment.body === ""}
+
      {#if comment.body.trim() === "" || comment.body.trim() === templateComment}
        <span class="txt-missing">No description.</span>
      {:else}
        <Markdown content={comment.body} {getImage} />