mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix the bug the default account shows "unspecified" in desktop version after the default account is set to hidden
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
:label="tt('Default Account')"
|
:label="tt('Default Account')"
|
||||||
:placeholder="tt('Default Account')"
|
:placeholder="tt('Default Account')"
|
||||||
:items="allVisibleCategorizedAccounts"
|
:items="allVisibleCategorizedAccounts"
|
||||||
:no-item-text="tt('Unspecified')"
|
:no-item-text="Account.findAccountNameById(allAccounts, newProfile.defaultAccountId, tt('Unspecified'))"
|
||||||
v-model="newProfile.defaultAccountId">
|
v-model="newProfile.defaultAccountId">
|
||||||
</two-column-select>
|
</two-column-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
@@ -370,6 +370,7 @@ import { useAccountsStore } from '@/stores/account.ts';
|
|||||||
|
|
||||||
import { SUPPORTED_IMAGE_EXTENSIONS } from '@/consts/file.ts';
|
import { SUPPORTED_IMAGE_EXTENSIONS } from '@/consts/file.ts';
|
||||||
import type { UserProfileResponse } from '@/models/user.ts';
|
import type { UserProfileResponse } from '@/models/user.ts';
|
||||||
|
import { Account } from '@/models/account.ts';
|
||||||
|
|
||||||
import { generateRandomUUID } from '@/lib/misc.ts';
|
import { generateRandomUUID } from '@/lib/misc.ts';
|
||||||
import { isUserVerifyEmailEnabled } from '@/lib/server_settings.ts';
|
import { isUserVerifyEmailEnabled } from '@/lib/server_settings.ts';
|
||||||
@@ -391,6 +392,7 @@ const {
|
|||||||
loading,
|
loading,
|
||||||
resending,
|
resending,
|
||||||
saving,
|
saving,
|
||||||
|
allAccounts,
|
||||||
allVisibleAccounts,
|
allVisibleAccounts,
|
||||||
allVisibleCategorizedAccounts,
|
allVisibleCategorizedAccounts,
|
||||||
allWeekDays,
|
allWeekDays,
|
||||||
|
|||||||
Reference in New Issue
Block a user