Compare commits
No commits in common. "6d9d8a4724135df98ed1bec74b0cc20a8bdbda53" and "8f33640bec8f79987b1319fb0765535fe493d496" have entirely different histories.
6d9d8a4724
...
8f33640bec
@ -229,7 +229,6 @@
|
|||||||
...options,
|
...options,
|
||||||
data: current_cards,
|
data: current_cards,
|
||||||
}));
|
}));
|
||||||
$table.resetRowSelection()
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{$_("delete-cards")}
|
{$_("delete-cards")}
|
||||||
|
@ -205,25 +205,12 @@
|
|||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
const prom = [];
|
const prom = [];
|
||||||
for (const scan of selectedScans) {
|
for (const scan of selectedScans) {
|
||||||
prom.push(ScanService.scanControllerRemove(scan.id, true));
|
prom.push(deleteScan(scan.id));
|
||||||
}
|
}
|
||||||
await Promise.all(prom);
|
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
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
fill="none"
|
fill="none"
|
||||||
|
@ -481,6 +481,5 @@
|
|||||||
"scan-deleted": "Scan gelöscht",
|
"scan-deleted": "Scan gelöscht",
|
||||||
"please-confirm-the-deletion-of-scan": "Bitte bestätige die Löschung des Scans",
|
"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",
|
"please-confirm-the-deletion-of-card": "Bitte bestätige die Löschung der Karte",
|
||||||
"card": "Läuferkarte",
|
"card": "Läuferkarte"
|
||||||
"delete-scans": "Scans löschen"
|
|
||||||
}
|
}
|
||||||
|
@ -481,6 +481,5 @@
|
|||||||
"scan-deleted": "scan deleted",
|
"scan-deleted": "scan deleted",
|
||||||
"please-confirm-the-deletion-of-scan": "Please confirm the deletion of scan",
|
"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",
|
"please-confirm-the-deletion-of-card": "Please confirm the deletion of this card",
|
||||||
"card": "card",
|
"card": "card"
|
||||||
"delete-scans": "Delete scans"
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user