From 9b1ace4793cd4f5f89005ddac8ba142a4591959d Mon Sep 17 00:00:00 2001 From: eti Date: Thu, 24 Sep 2026 22:20:48 +0200 Subject: [PATCH] web/repo: separate copy at uri from report items in the ticket menu Signed-off-by: eti --- web/src/lib/components/repo/tickets/Ticket.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/lib/components/repo/tickets/Ticket.svelte b/web/src/lib/components/repo/tickets/Ticket.svelte index 7e4778853..12ea4738c 100644 --- a/web/src/lib/components/repo/tickets/Ticket.svelte +++ b/web/src/lib/components/repo/tickets/Ticket.svelte @@ -13,6 +13,7 @@ import TicketInfoBar from "$lib/components/repo/tickets/TicketInfoBar.svelte"; import { createAction } from "$lib/action.svelte"; import { getAuth } from "$lib/auth.svelte"; + import { createReporting } from "$lib/components/moderation/reporting.svelte"; import type { MarkupContext } from "$lib/markup"; import type { Snippet } from "svelte"; import Reactions from "$lib/components/reaction/Reactions.svelte"; @@ -75,6 +76,7 @@ }: Props = $props(); const auth = getAuth(); + const reporting = createReporting(); const isAuthor = $derived(auth.currentDid === ticket.author.did); const isPull = $derived(ticket.targetBranch !== undefined); const showActionRow = $derived( @@ -142,6 +144,9 @@ > Copy AT URI + {#if reporting.canReport(ticket.author.did)} + + {/if}