From 584d497c6af6f79adbd3fa6aab7b2c6cae656ad9 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sun, 11 Oct 2020 12:25:26 +0200 Subject: [PATCH] Click dates send to history page for given lottery. --- src/components/PersonalHighscorePage.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/PersonalHighscorePage.vue b/src/components/PersonalHighscorePage.vue index 530d326..b6068cd 100644 --- a/src/components/PersonalHighscorePage.vue +++ b/src/components/PersonalHighscorePage.vue @@ -22,7 +22,9 @@

Flasker vunnet:

- {{ humanReadableDate(win.date) }} - {{ daysAgo(win.date) }} dager siden + + {{ humanReadableDate(win.date) }} - {{ daysAgo(win.date) }} dager siden +
@@ -81,6 +83,10 @@ export default { }) return colorOccurences }, + winDateUrl(date) { + const timestamp = new Date(date).getTime(); + return `/history/${timestamp}` + }, humanReadableDate: humanReadableDate, daysAgo: daysAgo },