From a2a1119743b3c617cc1e433166d47942db53a75e Mon Sep 17 00:00:00 2001 From: maldestor95 Date: Wed, 17 Jan 2024 08:52:31 +0100 Subject: [PATCH] history output selectable by button --- src/pages/wizard/history.vue | 16 +++++++++++++--- src/pages/wizard/historychart.vue | 17 +++++++++-------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/pages/wizard/history.vue b/src/pages/wizard/history.vue index e59844f..7fcd531 100644 --- a/src/pages/wizard/history.vue +++ b/src/pages/wizard/history.vue @@ -1,6 +1,14 @@ diff --git a/src/pages/wizard/historychart.vue b/src/pages/wizard/historychart.vue index 1eeb756..cf51ba6 100644 --- a/src/pages/wizard/historychart.vue +++ b/src/pages/wizard/historychart.vue @@ -1,18 +1,15 @@ @@ -33,9 +30,13 @@ import { import zoomPlugin from "chartjs-plugin-zoom"; import { Bar, Line } from "vue-chartjs"; import { useScoreStore } from "./store"; -import { ref } from "vue"; -const setGraph = ref("cumulative"); +export type Props = { + graphType: "total" | "cumulative" | undefined; +}; +const props = withDefaults(defineProps(), { + graphType: "total", +}); const store = useScoreStore();