This commit is contained in:
2022-02-10 16:07:29 +00:00
parent c693625e34
commit 21dcd7837b
8 changed files with 46 additions and 38 deletions

View File

@ -12,7 +12,7 @@ interface Date {
export default defineComponent({
mounted() {
document.title = "Budgeteer - Budget for " + this.month + " " + this.year;
document.title = "Budgeteer - Budget for " + this.selected.Month + "/" + this.selected.Year;
return useAccountStore().FetchMonthBudget(this.budgetid, this.year, this.month);
},
watch: {
@ -27,7 +27,9 @@ export default defineComponent({
computed: {
...mapState(useBudgetsStore, ["CurrentBudgetID"]),
Categories() : IterableIterator<Category> | undefined {
return useAccountStore().Categories(this.year, this.month);
const accountStore = useAccountStore();
console.log(accountStore.CategoriesForMonth(this.year, this.month));
return accountStore.CategoriesForMonth(this.year, this.month);
},
previous(): Date {
return {