Close modal on delete and import toastify

This commit is contained in:
Nicolai Ort 2023-04-12 19:23:27 +02:00
parent 3e8dac3203
commit 03b7ada5ef
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@
})(); })();
async function submit() { async function submit() {
dispatch("delete", { id: delete_runner.id }); dispatch("delete", { id: delete_runner.id });
modal_open=false;
} }
</script> </script>

View File

@ -24,6 +24,7 @@
import TableActions from "../shared/TableActions.svelte"; import TableActions from "../shared/TableActions.svelte";
import { groupFilter } from "../shared/tablefilters"; import { groupFilter } from "../shared/tablefilters";
import DeleteRunnerModal from "./DeleteRunnerModal.svelte"; import DeleteRunnerModal from "./DeleteRunnerModal.svelte";
import Toastify from "toastify-js";
$: selectedRunners = $: selectedRunners =
$table?.getSelectedRowModel().rows.map((row) => row.original) || []; $table?.getSelectedRowModel().rows.map((row) => row.original) || [];