|
146 | 146 | </f7-navbar> |
147 | 147 | <f7-block class="no-padding no-margin" |
148 | 148 | :key="categoryType" v-for="(categories, categoryType) in allPresetCategories"> |
149 | | - <f7-block-title class="margin-top margin-horizontal">{{ getCategoryTypeName(categoryType) }}</f7-block-title> |
| 149 | + <f7-block-title class="margin-top margin-horizontal">{{ getCategoryTypeName(parseInt(categoryType)) }}</f7-block-title> |
150 | 150 | <f7-list strong inset dividers v-if="showPresetCategories"> |
151 | 151 | <f7-list-item :title="category.name" |
152 | 152 | :accordion-item="!!category.subCategories.length" |
@@ -203,9 +203,9 @@ import { useSignupPageBase } from '@/views/base/SignupPageBase.ts'; |
203 | 203 |
|
204 | 204 | import { useRootStore } from '@/stores/index.ts'; |
205 | 205 |
|
206 | | -import type { PartialRecord, TypeAndDisplayName } from '@/core/base.ts'; |
| 206 | +import type { TypeAndDisplayName } from '@/core/base.ts'; |
207 | 207 | import type { LocalizedCurrencyInfo } from '@/core/currency.ts'; |
208 | | -import { type LocalizedPresetCategory, CategoryType } from '@/core/category.ts'; |
| 208 | +import { type LocalizedPresetCategory } from '@/core/category.ts'; |
209 | 209 |
|
210 | 210 | import { findDisplayNameByType, categorizedArrayToPlainArray } from '@/lib/common.ts'; |
211 | 211 | import { isUserLogined } from '@/lib/userstate.ts'; |
@@ -244,7 +244,7 @@ const showPresetCategoriesChangeLocaleSheet = ref<boolean>(false); |
244 | 244 | const allLanguages = computed<LanguageOption[]>(() => getAllLanguageOptions(false)); |
245 | 245 | const allCurrencies = computed<LocalizedCurrencyInfo[]>(() => getAllCurrencies()); |
246 | 246 | const allWeekDays = computed<TypeAndDisplayName[]>(() => getAllWeekDays()); |
247 | | -const allPresetCategories = computed<PartialRecord<CategoryType, LocalizedPresetCategory[]>>(() => getAllTransactionDefaultCategories(0, currentLocale.value)); |
| 247 | +const allPresetCategories = computed<Record<string, LocalizedPresetCategory[]>>(() => getAllTransactionDefaultCategories(0, currentLocale.value)); |
248 | 248 | const currentDayOfWeekName = computed<string | null>(() => findDisplayNameByType(allWeekDays.value, user.value.firstDayOfWeek)); |
249 | 249 |
|
250 | 250 | function submit(): void { |
|
0 commit comments