diff --git a/src/components/VirtualLotteryPage.vue b/src/components/VirtualLotteryPage.vue index adbe7ff..7bddfab 100644 --- a/src/components/VirtualLotteryPage.vue +++ b/src/components/VirtualLotteryPage.vue @@ -21,6 +21,21 @@ Se her +
+ +

Live oversikt av kjøp i dag

+
+
+
+

{{ ticketsBought[color] }} kjøpt

+
+
+
+ list.map(object => object[key]).reduce((a, b) => a + b); + + this.ticketsBought = { + red: addValueOfListObjectByKey(response, "red"), + blue: addValueOfListObjectByKey(response, "blue"), + green: addValueOfListObjectByKey(response, "green"), + yellow: addValueOfListObjectByKey(response, "yellow"), + } } this.attendeesFetched = true; }, @@ -202,6 +226,151 @@ export default { } + +