rename
This commit is contained in:
parent
e2920db7d4
commit
8d90e9a556
|
|
@ -58,7 +58,7 @@ export async function removeAccount(host: string, id: AccountWithToken['id']) {
|
|||
prefer.commit('accounts', prefer.s.accounts.filter(x => x[0] !== host || x[1].id !== id));
|
||||
}
|
||||
|
||||
export async function removeAccountData(host: string, id: AccountWithToken['id']) {
|
||||
export async function removeAccountAssociatedData(host: string, id: AccountWithToken['id']) {
|
||||
// 設定・状態を削除
|
||||
prefer.clearAccountSettingsFromDevice(host, id);
|
||||
await store.clearAccountDataFromDevice(id);
|
||||
|
|
@ -181,7 +181,7 @@ export async function refreshAccounts() {
|
|||
} catch (e) {
|
||||
if (e === isAccountDeleted) {
|
||||
await removeAccount(account.host, account.id);
|
||||
await removeAccountData(account.host, account.id);
|
||||
await removeAccountAssociatedData(account.host, account.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import type { MenuItem } from '@/types/menu.js';
|
|||
import MkButton from '@/components/MkButton.vue';
|
||||
import * as os from '@/os.js';
|
||||
import { $i } from '@/i.js';
|
||||
import { switchAccount, removeAccount, removeAccountData, getAccountWithSigninDialog, getAccountWithSignupDialog, getAccounts, refreshAccounts } from '@/accounts.js';
|
||||
import { switchAccount, removeAccount, removeAccountAssociatedData, getAccountWithSigninDialog, getAccountWithSignupDialog, getAccounts, refreshAccounts } from '@/accounts.js';
|
||||
import type { AccountData } from '@/accounts.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { definePage } from '@/page.js';
|
||||
|
|
@ -93,7 +93,7 @@ function showMenu(a: AccountData, ev: MouseEvent) {
|
|||
if (canceled) return;
|
||||
await os.promiseDialog((async () => {
|
||||
await removeAccount(a.host, a.id);
|
||||
await removeAccountData(a.host, a.id);
|
||||
await removeAccountAssociatedData(a.host, a.id);
|
||||
accounts.value = await getAccounts();
|
||||
})());
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue