From 14b632a8285517b51af1b04e0791978c6acd6cff Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 11 Dec 2022 17:33:45 -0800 Subject: [PATCH] fix: call functions properly --- .../client/src/pages/settings/migration.vue | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) 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, }); }