From 9d15a08c846b4c12ea11462246166ebf748bf07c Mon Sep 17 00:00:00 2001
From: Jonas <jonas.zohren@tu-dortmund.de>
Date: Tue, 23 Feb 2021 20:08:18 +0100
Subject: [PATCH] Reduce default rows but add button to add row

---
 src/App.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/App.svelte b/src/App.svelte
index c0b4ef1..2a98f8e 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -6,7 +6,7 @@ import FormulaS from "./FormulaS.svelte";
     import RowWorkItem from "./RowWorkItem.svelte";
     import SumRow from "./SumRow.svelte";
 
-    const NUMBER_OF_WORKPACKAGES = 10;
+    const NUMBER_OF_WORKPACKAGES = 8;
 
     let workPackages: WorkPackage[] = []
     export let r: number = 4;
@@ -50,6 +50,7 @@ import FormulaS from "./FormulaS.svelte";
             <SumRow {workPackages} u={u} r={r}></SumRow>
         </tbody>
     </table>
+    <button on:click={() => {workPackages = [...workPackages, {a: null, b: null, c: null}];}}>Zeile hinzufügen</button>
 
     <FormulaE workPackages={workPackages} r={r}/>
     <br>
-- 
GitLab