From a9d3d0038fcfce59d1bac240086462e702c286e5 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Wed, 18 Mar 2026 18:27:30 +0100 Subject: [PATCH] Card Changes for New Dashboard --- .../displayIncomeAndExpenditure.vue | 63 ++++++++++++++++++- frontend/components/displayOpenTasks.vue | 6 +- 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/frontend/components/displayIncomeAndExpenditure.vue b/frontend/components/displayIncomeAndExpenditure.vue index d8227b6..cd3364a 100644 --- a/frontend/components/displayIncomeAndExpenditure.vue +++ b/frontend/components/displayIncomeAndExpenditure.vue @@ -5,7 +5,15 @@ import { Line } from "vue-chartjs"; dayjs.extend(customParseFormat) +const props = defineProps({ + headerTarget: { + type: String, + default: "" + } +}) + const tempStore = useTempStore() +const isMounted = ref(false) const amountMode = ref("net") const granularity = ref("year") @@ -218,12 +226,65 @@ const chartOptions = ref({ maintainAspectRatio: false, }) +const showHeaderControls = computed(() => isMounted.value && !!props.headerTarget) +const showInlineControls = computed(() => !showHeaderControls.value) + +onMounted(() => { + isMounted.value = true +}) + loadData()