Fix missing computed calls in BudgetSidebar
All checks were successful
continuous-integration/drone/push Build is passing
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jan Bader 2022-02-14 22:49:30 +00:00
parent 0aa877d7d4
commit 1a79177422

View File

@ -1,4 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from "vue";
import Currency from "../components/Currency.vue" import Currency from "../components/Currency.vue"
import { useBudgetsStore } from "../stores/budget" import { useBudgetsStore } from "../stores/budget"
import { useAccountStore } from "../stores/budget-account" import { useAccountStore } from "../stores/budget-account"
@ -9,17 +10,17 @@ const props = defineProps<{
accountid: string, accountid: string,
}>(); }>();
const ExpandMenu = useSettingsStore().Menu.Expand; const ExpandMenu = computed(() => useSettingsStore().Menu.Expand);
const budgetStore = useBudgetsStore(); const budgetStore = useBudgetsStore();
const CurrentBudgetName = budgetStore.CurrentBudgetName; const CurrentBudgetName = computed(() => budgetStore.CurrentBudgetName);
const CurrentBudgetID = budgetStore.CurrentBudgetID; const CurrentBudgetID = computed(() => budgetStore.CurrentBudgetID);
const accountStore = useAccountStore(); const accountStore = useAccountStore();
const OnBudgetAccounts = accountStore.OnBudgetAccounts; const OnBudgetAccounts = computed(() => accountStore.OnBudgetAccounts);
const OffBudgetAccounts = accountStore.OffBudgetAccounts; const OffBudgetAccounts = computed(() => accountStore.OffBudgetAccounts);
const OnBudgetAccountsBalance = accountStore.OnBudgetAccountsBalance; const OnBudgetAccountsBalance = computed(() => accountStore.OnBudgetAccountsBalance);
const OffBudgetAccountsBalance = accountStore.OffBudgetAccountsBalance; const OffBudgetAccountsBalance = computed(() => accountStore.OffBudgetAccountsBalance);
</script> </script>
<template> <template>