Skip to content

Open source personal finance application

feat(stat): add category config to category and wallet stat pages

Ilya Komichev3e75e49f9ab4
diff --git a/app/app/components/categories/StatPage.vue b/app/app/components/categories/StatPage.vue
index 14fbc3d1..655b4d44 100644
--- a/app/app/components/categories/StatPage.vue
+++ b/app/app/components/categories/StatPage.vue
@@ -79,6 +79,8 @@ useHead({ title: category.value?.name })
<template>
<UiPage v-if="category">
<StatHeader
+ :trnsIds
+ configCategories
configWallets
filterWallets
>
diff --git a/app/app/components/categories/page/id/Index.vue b/app/app/components/categories/page/id/Index.vue
index 23fb1c36..0885e2e2 100644
--- a/app/app/components/categories/page/id/Index.vue
+++ b/app/app/components/categories/page/id/Index.vue
@@ -224,6 +224,9 @@ const categoriesIds = computed(() => categoriesStore.getChildrenIds(categoryId.v
:backSkipPattern="categoryDetailHistoryPattern"
:backTo="category.parentId ? `/categories/${category.parentId}` : '/categories'"
:hideTabs="!!singleTrnType"
+ :preCategoriesIds
+ :trnsIds
+ configCategories
filterWallets
>
<template #title>
diff --git a/app/app/components/wallets/page/id/Index.vue b/app/app/components/wallets/page/id/Index.vue
index fb9aa22d..9c0428ed 100644
--- a/app/app/components/wallets/page/id/Index.vue
+++ b/app/app/components/wallets/page/id/Index.vue
@@ -116,6 +116,8 @@ async function onDeleteConfirm() {
v-model:activeTab="activeTab"
:backSkipPattern="walletDetailHistoryPattern"
backTo="/wallets"
+ :trnsIds
+ configCategories
filterCategories
>
<template #title>