diff --git a/src/components/transactions/TransactionCreateUpdate.vue b/src/components/transactions/TransactionCreateUpdate.vue index fcd8918..a235465 100644 --- a/src/components/transactions/TransactionCreateUpdate.vue +++ b/src/components/transactions/TransactionCreateUpdate.vue @@ -29,6 +29,8 @@ const tgApp = window.Telegram.WebApp const isCategorySelectorOpened = ref(false); const categories = ref([]); +const incomeCategories = computed(() => categories.value.filter(i => i.type == CategoryType.INCOME)) +const expenseCategories = computed(() => categories.value.filter(i => i.type == CategoryType.EXPENSE)) const transactionId = ref(route.params.id) const mode = computed(() => { return transactionId.value ? "edit" : "create" @@ -270,7 +272,7 @@ onMounted(async () => { Looks like you have no created categories yet. Try to create some first. -
+
{
Income categories
-
@@ -299,14 +301,14 @@ onMounted(async () => {
- +
-
+
Expense categories
-
@@ -319,7 +321,7 @@ onMounted(async () => {
- +