diff --git a/web/src/pages/Budgeting.vue b/web/src/pages/Budgeting.vue index 684d51b..bf00f8c 100644 --- a/web/src/pages/Budgeting.vue +++ b/web/src/pages/Budgeting.vue @@ -15,13 +15,15 @@ const budgetsStore = useBudgetsStore(); const CurrentBudgetID = computed(() => budgetsStore.CurrentBudgetID); const accountStore = useAccountStore(); -const categoriesForMonth = accountStore.CategoriesForMonth; -const Categories = computed(() => { - return [...categoriesForMonth(selected.value.Year, selected.value.Month)]; -}); -const hiddenCategoriesForMonth = accountStore.HiddenCategoriesForMonth; -const HiddenCategories = computed(() => { - return [...hiddenCategoriesForMonth(selected.value.Year, selected.value.Month)]; +const categoriesForMonth = accountStore.CategoriesForMonthAndGroup; + +function GetCategories(group : string) { + return [...categoriesForMonth(selected.value.Year, selected.value.Month, group)]; +}; + +const groupsForMonth = accountStore.CategoryGroupsForMonth; +const GroupsForMonth = computed(() => { + return [...groupsForMonth(selected.value.Year, selected.value.Month)]; }); @@ -67,7 +69,6 @@ onMounted(() => {
Group | Category | @@ -76,41 +77,25 @@ onMounted(() => { | Activity | Available | |||
---|---|---|---|---|---|---|---|
{{ category.Group }} | -{{ category.Name }} | -- | - |
- |
-
- |
-
- |
-
- |
-
{{ category.Group }} | -{{ category.Name }} | -- | - |
- |
-
- |
-
- |
-
- |
-
{{ category.Name }} | ++ | + |
+ |
+
+ |
+
+ |
+
+ |
+