diff --git a/src/lib/calculator/Calculator.svelte b/src/lib/calculator/Calculator.svelte index e268dd5..05d355b 100644 --- a/src/lib/calculator/Calculator.svelte +++ b/src/lib/calculator/Calculator.svelte @@ -164,6 +164,14 @@ save(); } + function copy(commission: Commission) { + let newCommission = { ...commission }; + newCommission.name = "Commission " + number; + commissions.push(newCommission); + commissions = commissions; + save(); + } + function remove(name: string) { commissions = commissions.filter(value => { return value.name != name; @@ -192,7 +200,7 @@
${commission.price}
+