Scan reactive add

This commit is contained in:
2023-04-12 21:14:37 +02:00
parent 9811ede3b2
commit f5d14f2e18
3 changed files with 16 additions and 5 deletions

View File

@@ -31,6 +31,14 @@
$: active_delete = undefined;
export let current_scans = [];
export const addScans = (scans) => {
current_scans = current_scans.concat(...scans);
options.update((options) => ({
...options,
data: current_scans,
}));
};
const scans_promise = ScanService.scanControllerGetAll().then((val) => {
current_scans = val;
// handler.setRows(val);