fix: issues with files tab + tech rev cards (#4941)

This commit is contained in:
Calum H.
2025-12-20 21:58:14 +00:00
committed by GitHub
parent 39f2b0ecb6
commit 537eadef0c
4 changed files with 21 additions and 41 deletions

View File

@@ -158,6 +158,9 @@ const client = injectModrinthClient()
const severityOrder = { severe: 3, high: 2, medium: 1, low: 0 } as Record<string, number>
const detailDecisions = ref<Map<string, 'safe' | 'malware'>>(new Map())
const updatingDetails = ref<Set<string>>(new Set())
function getFileHighestSeverity(
file: FlattenedFileReport,
): Labrinth.TechReview.Internal.DelphiSeverity {
@@ -303,9 +306,6 @@ async function copyToClipboard(code: string, detailId: string) {
}
}
const detailDecisions = ref<Map<string, 'safe' | 'malware'>>(new Map())
const updatingDetails = ref<Set<string>>(new Set())
function getDetailDecision(
detailId: string,
backendStatus: Labrinth.TechReview.Internal.DelphiReportIssueStatus,