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 @@ History - + + Total + Table + cumulative + + Round @@ -18,14 +26,16 @@ - + 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 @@ Chart - - Total - cumulative - + {{ store.getScore(1) }} @@ -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();