Risk batches: one decision at a time, so a double click doesn't send it twice

(cherry picked from commit 88c1eb33be)
This commit is contained in:
2026-11-22 09:35:01 -06:00
parent 686580af81
commit 4e08bb8c4b
2 changed files with 21 additions and 3 deletions
@@ -111,7 +111,8 @@ export class RiskBatchesPanel implements OnInit {
verb: string,
): void {
const reason = this.reasonFor(batch).value.trim();
if (!reason) return;
// a double click reaches here before the disabled button is drawn: one decision at a time
if (!reason || this.deciding() !== null) return;
this.deciding.set(batch.lote_id);
request(reason).subscribe({
next: () => {