Use setTitle everywhere
All checks were successful
continuous-integration/drone/push Build is passing
ci/woodpecker/push/woodpecker Pipeline was successful
continuous-integration/drone/pr Build is passing
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
2022-02-15 08:35:29 +00:00
parent 4276c51268
commit 0d20d9bfb8
6 changed files with 15 additions and 11 deletions

View File

@ -1,8 +1,9 @@
<script lang="ts" setup>
import { computed, defineProps, watchEffect } from "vue";
import { computed, defineProps, onMounted, watchEffect } from "vue";
import Currency from "../components/Currency.vue";
import { useBudgetsStore } from "../stores/budget";
import { useAccountStore } from "../stores/budget-account";
import { useSessionStore } from "../stores/session";
const props = defineProps<{
budgetid: string,
@ -40,9 +41,9 @@ watchEffect(() => {
return useAccountStore().FetchMonthBudget(props.budgetid ?? "", Number(props.year), Number(props.month));
});
/*{{define "title"}}
{{printf "Budget for %s %d" .Date.Month .Date.Year}}
{{end}}*/
onMounted(() => {
useSessionStore().setTitle("Budget for " + selected.value.Month + "/" + selected.value.Year);
})
</script>
<template>