From ea11ecd77a1acab4fdd60b78614d16c11ec3a4cf Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 27 Mar 2025 21:57:46 +0000 Subject: [PATCH] add confirm for comment deletion --- appview/pages/templates/fragments/issueComment.html | 3 ++- appview/pages/templates/repo/issues/issue.html | 2 +- 2 file(s) changed, 3 insertion(s)(+), 2 deletion(s)(-) diff --git a/appview/pages/templates/fragments/issueComment.html b/appview/pages/templates/fragments/issueComment.html --- a/appview/pages/templates/fragments/issueComment.html +++ b/appview/pages/templates/fragments/issueComment.html @@ -28,7 +28,7 @@ {{ .Created | timeFmt }} {{ end }} - {{ $isCommentOwner := eq $.LoggedInUser.Did .OwnerDid }} + {{ $isCommentOwner := and $.LoggedInUser (eq $.LoggedInUser.Did .OwnerDid) }} {{ if and $isCommentOwner (not .Deleted) }}