summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkSigninDialog.vue
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-10-10 14:05:20 +0900
committerGitHub <noreply@github.com>2024-10-10 14:05:20 +0900
commita624546812af072d23579bce81f85668f9a97c09 (patch)
treedf1cd8a79ecacf9b01e6307d67f65f6a097110ed /packages/frontend/src/components/MkSigninDialog.vue
parentrefactor(frontend): prefix css variables (#14725) (diff)
downloadsharkey-a624546812af072d23579bce81f85668f9a97c09.tar.gz
sharkey-a624546812af072d23579bce81f85668f9a97c09.tar.bz2
sharkey-a624546812af072d23579bce81f85668f9a97c09.zip
fix(frontend): ユーザー登録完了時にサインインAPIを別途使用していたのを修正 (#14738)
* fix(frontend): ユーザー登録完了時にサインインAPIを別途使用していたのを修正 * emitされるオブジェクトの型を変更したことに伴う修正 * Update Changelog
Diffstat (limited to 'packages/frontend/src/components/MkSigninDialog.vue')
-rw-r--r--packages/frontend/src/components/MkSigninDialog.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkSigninDialog.vue b/packages/frontend/src/components/MkSigninDialog.vue
index 2aa11ac319..51dea960aa 100644
--- a/packages/frontend/src/components/MkSigninDialog.vue
+++ b/packages/frontend/src/components/MkSigninDialog.vue
@@ -23,6 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
<script lang="ts" setup>
+import * as Misskey from 'misskey-js';
import { shallowRef } from 'vue';
import type { OpenOnRemoteOptions } from '@/scripts/please-login.js';
import MkSignin from '@/components/MkSignin.vue';
@@ -40,7 +41,7 @@ withDefaults(defineProps<{
});
const emit = defineEmits<{
- (ev: 'done', v: any): void;
+ (ev: 'done', v: Misskey.entities.SigninFlowResponse & { finished: true }): void;
(ev: 'closed'): void;
(ev: 'cancelled'): void;
}>();
@@ -52,7 +53,7 @@ function onClose() {
if (modal.value) modal.value.close();
}
-function onLogin(res) {
+function onLogin(res: Misskey.entities.SigninFlowResponse & { finished: true }) {
emit('done', res);
if (modal.value) modal.value.close();
}