Show edited label on edited comments and issues

If a comment or an issue had at least one additional edit, we show a `edited` label,
which on hover shows the standard tooltip with more information on
who edited it and when.
This commit is contained in:
Sebastian Martinez
2023-12-15 07:10:14 +01:00
parent 10c54ace67
commit 448c762831
5 changed files with 46 additions and 3 deletions
+2
View File
@@ -92,6 +92,7 @@
{enableAttachments}
{rawPath}
id={root.id}
lastEdit={root.edits.length > 1 ? root.edits.pop() : undefined}
authorId={root.author.id}
authorAlias={root.author.alias}
reactions={root.reactions}
@@ -111,6 +112,7 @@
<CommentComponent
{enableAttachments}
{rawPath}
lastEdit={reply.edits.length > 1 ? reply.edits.pop() : undefined}
id={reply.id}
authorId={reply.author.id}
authorAlias={reply.author.alias}