diff --git a/lab2/src/lib/ProcessList.svelte b/lab2/src/lib/ProcessList.svelte index ae083bd..983e21c 100644 --- a/lab2/src/lib/ProcessList.svelte +++ b/lab2/src/lib/ProcessList.svelte @@ -37,6 +37,13 @@ processess = newProcessess selectedAdd = getAvailableProcessess()[0] } + + function removeRow(id) { + processess = processess.filter(row => row != id) + if (selectedAdd == undefined) { + selectedAdd = getAvailableProcessess()[0] + } + }