diff --git a/packages/client/src/pages/settings/migration.vue b/packages/client/src/pages/settings/migration.vue index 5f8bcfe2a..c3e726cd9 100644 --- a/packages/client/src/pages/settings/migration.vue +++ b/packages/client/src/pages/settings/migration.vue @@ -6,8 +6,10 @@ - {{ i18n.ts.moveAccount }} - + + {{ i18n.ts.moveAccount }} + + @@ -16,8 +18,10 @@ - {{ i18n.ts.save }} - + + {{ i18n.ts.save }} + + @@ -33,20 +37,20 @@ import { definePageMetadata } from '@/scripts/page-metadata'; let moveToAccount = $ref(''); let accountAlias = $ref(''); -async function save(): Promise { +async function save(account): Promise { os.apiWithDialog('i/known-as', { - alsoKnownAs: accountAlias, + alsoKnownAs: account, }); } -async function move(): Promise { +async function move(account): Promise { const confirm = await os.confirm({ type: 'warning', - text: i18n.t('migrationConfirm', { account: moveToAccount.toString() }), + text: i18n.t('migrationConfirm', { account: account.toString() }), }); if (confirm.canceled) return; os.api('i/move', { - moveToAccount: moveToAccount, + moveToAccount: account, }); }