Skip to content

Commit 71413ea

Browse files
rootclaude
authored andcommitted
Fix: modal initialization and reprocess auth issues
- Fix delete modal ID mismatch (callDeleteModal → deleteModal) - Change reprocess endpoint to use token_or_login_required for web access - Fixes '401 UNAUTHORIZED' error when reprocessing from table rows Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 134ca96 commit 71413ea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

routes/api/call_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ def _maybe_classify_incident_for_call(
22992299

23002300

23012301
@api_call_upload.route("/reprocess/<int:call_id>", methods=["POST"])
2302-
@token_required
2302+
@token_or_login_required
23032303
def reprocess_call_tones(call_id):
23042304
"""Reprocess tones for an existing call."""
23052305
import traceback

static/js/dashboard/tone_finder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ function initToneFinderPage() {
11341134
refreshBtn: document.getElementById("refreshBtn"),
11351135

11361136
callModal: document.getElementById("callModal"),
1137-
delModal: document.getElementById("callDeleteModal"),
1137+
delModal: document.getElementById("deleteModal"),
11381138
delConfirmBtn: document.getElementById("deleteCallConfirmBtn"),
11391139

11401140
autoRef: document.getElementById("autoRefresh"),

0 commit comments

Comments
 (0)