Delete modal logic

This commit is contained in:
2023-04-12 19:11:07 +02:00
parent e2ddb5a14c
commit da3300562a
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
firstname: "",
lastname: "",
};
export let current_runners;
function focus(el) {
el.focus();
@@ -30,6 +31,7 @@
})();
async function submit() {
await RunnerService.runnerControllerRemove(delete_runner.id, true);
current_runners = current_runners.filter((r)=>r.id !== delete_runner.id);
Toastify({
text: $_("runner-deleted"),
duration: 3500,