mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-25 14:50:30 +08:00
Handle possible template comment in patch comment body
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+6
-1
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user