Compare commits

..

No commits in common. "6d9d8a4724135df98ed1bec74b0cc20a8bdbda53" and "8f33640bec8f79987b1319fb0765535fe493d496" have entirely different histories.

4 changed files with 4 additions and 20 deletions

View File

@ -229,7 +229,6 @@
...options,
data: current_cards,
}));
$table.resetRowSelection()
}}
>
{$_("delete-cards")}

View File

@ -205,25 +205,12 @@
on:click={async () => {
const prom = [];
for (const scan of selectedScans) {
prom.push(ScanService.scanControllerRemove(scan.id, true));
prom.push(deleteScan(scan.id));
}
await Promise.all(prom);
for (const scan of selectedScans) {
current_scans = current_scans.filter((r) => r.id !== scan.id);
}
options.update((options) => ({
...options,
data: current_scans,
}));
$table.resetRowSelection();
Toastify({
text: $_("scan-deleted"),
duration: 3500,
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)",
}).showToast();
}}
>
{$_("delete-scans")}
{$_("delete-cards")}
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"

View File

@ -481,6 +481,5 @@
"scan-deleted": "Scan gelöscht",
"please-confirm-the-deletion-of-scan": "Bitte bestätige die Löschung des Scans",
"please-confirm-the-deletion-of-card": "Bitte bestätige die Löschung der Karte",
"card": "Läuferkarte",
"delete-scans": "Scans löschen"
"card": "Läuferkarte"
}

View File

@ -481,6 +481,5 @@
"scan-deleted": "scan deleted",
"please-confirm-the-deletion-of-scan": "Please confirm the deletion of scan",
"please-confirm-the-deletion-of-card": "Please confirm the deletion of this card",
"card": "card",
"delete-scans": "Delete scans"
"card": "card"
}