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:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user