[WEB-3866] fix: work item attachment activity #7062

This commit is contained in:
Anmol Singh Bhatia 2025-05-18 15:28:00 +05:30 committed by GitHub
parent 906ce8b500
commit 9c9952a823
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 20 deletions

View file

@ -196,15 +196,7 @@ const activityDetails: {
if (activity.verb === "created")
return (
<>
uploaded a new{" "}
<a
href={`${activity.new_value}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
>
attachment
</a>
uploaded a new attachment
{showIssue && (
<>
{" "}

View file

@ -25,17 +25,7 @@ export const IssueAttachmentActivity: FC<TIssueAttachmentActivity> = observer((p
ends={ends}
>
<>
{activity.verb === "created" ? `uploaded a new ` : `removed an attachment`}
{activity.verb === "created" && (
<a
href={`${activity.new_value}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
>
attachment
</a>
)}
{activity.verb === "created" ? `uploaded a new attachment` : `removed an attachment`}
{showIssue && (activity.verb === "created" ? ` to ` : ` from `)}
{showIssue && <IssueLink activityId={activityId} />}.
</>