Skip to content

Commit b703810

Browse files
author
Codex
committed
fix: show 'Classifying...' feedback on Classify/Re-classify button click
1 parent c90cdb6 commit b703810

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/web/templates/report_editor.templ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ templ ReportEditor(data EditorData) {
6363
Generate Report
6464
</button>
6565
if !data.HasClassifications {
66-
<a href={ templ.SafeURL("/?week=" + data.WeekParam + "&classify=1") } class="btn btn-secondary" style="background:#fef3c7;border-color:#f59e0b;color:#92400e;">
66+
<a href={ templ.SafeURL("/?week=" + data.WeekParam + "&classify=1") } class="btn btn-secondary" style="background:#fef3c7;border-color:#f59e0b;color:#92400e;" onclick="this.textContent='Classifying...';this.style.opacity='0.6';this.style.pointerEvents='none';">
6767
Classify Items
6868
</a>
6969
} else {
70-
<a href={ templ.SafeURL("/?week=" + data.WeekParam + "&classify=1") } class="btn btn-secondary">
70+
<a href={ templ.SafeURL("/?week=" + data.WeekParam + "&classify=1") } class="btn btn-secondary" onclick="this.textContent='Classifying...';this.style.opacity='0.6';this.style.pointerEvents='none';">
7171
Re-classify
7272
</a>
7373
}

internal/web/templates/report_editor_templ.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)