Remove deep legal analysis button from redact results

ask still gets the button; redact results no longer offer it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-25 22:13:13 +02:00
parent b2e1bf268d
commit 25c2cf826d
+3 -5
View File
@@ -1299,11 +1299,9 @@ async function runTool(event) {
latency_ms: data.latency_ms || 0,
});
}
// Offer "Run deep legal analysis" on ask/redact results
if (['ask', 'redact'].includes(state.activeTool)) {
const askText = state.activeTool === 'ask'
? ((lastToolPayload && lastToolPayload.question) || (data.answer || data.what_we_found || ''))
: (lastToolPayload && lastToolPayload.text) || (data.redacted_text || '');
// Offer "Run deep legal analysis" on ask results
if (state.activeTool === 'ask') {
const askText = (lastToolPayload && lastToolPayload.question) || (data.answer || data.what_we_found || '');
const resEl = els.results || document.getElementById('results');
if (askText && resEl) {
dbnInjectLegalAnalysisButton(askText, (lastToolPayload && lastToolPayload.language) || 'no', state.activeTool, resEl);