cancel approval flow on frontend when request is abandoned by client

This commit is contained in:
2024-01-21 13:46:39 -08:00
parent 7fdb336c79
commit 1df849442e
14 changed files with 104 additions and 29 deletions

View File

@@ -30,5 +30,15 @@ export default function() {
return this.items.shift();
},
find_remove(pred) {
for (let i=0; i<this.items.length; i++) {
if (pred(this.items[i])) {
this.items.splice(i, 1);
return true;
}
}
return false;
},
}
}