From 83c84efb34ece02a69cf9b0702626ac70ea796b5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 20 Dec 2022 11:00:05 +0900 Subject: [PATCH] :art: --- .../src/components/MkChannelFollowButton.vue | 9 ++--- packages/client/src/components/MkDialog.vue | 2 +- .../client/src/components/MkFollowButton.vue | 20 ++++++----- packages/client/src/components/MkSignup.vue | 4 +-- .../client/src/components/MkWaitingDialog.vue | 2 +- .../src/components/global/MkLoading.vue | 10 +++++- .../pages/messaging/messaging-room.form.vue | 2 +- packages/client/src/pages/settings/2fa.vue | 34 +++++++++---------- packages/client/src/ui/_common_/upload.vue | 2 +- 9 files changed, 48 insertions(+), 37 deletions(-) diff --git a/packages/client/src/components/MkChannelFollowButton.vue b/packages/client/src/components/MkChannelFollowButton.vue index 46d57b4fc6..9e275d6172 100644 --- a/packages/client/src/components/MkChannelFollowButton.vue +++ b/packages/client/src/components/MkChannelFollowButton.vue @@ -1,5 +1,6 @@ @@ -39,12 +40,12 @@ async function onClick() { try { if (isFollowing.value) { await os.api('channels/unfollow', { - channelId: props.channel.id + channelId: props.channel.id, }); isFollowing.value = false; } else { await os.api('channels/follow', { - channelId: props.channel.id + channelId: props.channel.id, }); isFollowing.value = true; } diff --git a/packages/client/src/components/MkDialog.vue b/packages/client/src/components/MkDialog.vue index 8a46e9cdde..e40b5d6553 100644 --- a/packages/client/src/components/MkDialog.vue +++ b/packages/client/src/components/MkDialog.vue @@ -10,7 +10,7 @@ - +
diff --git a/packages/client/src/components/MkFollowButton.vue b/packages/client/src/components/MkFollowButton.vue index 1099893b0d..433386f443 100644 --- a/packages/client/src/components/MkFollowButton.vue +++ b/packages/client/src/components/MkFollowButton.vue @@ -1,5 +1,6 @@ - @@ -50,9 +52,9 @@ const connection = stream.useChannel('main'); if (props.user.isFollowing == null) { os.api('users/show', { - userId: props.user.id + userId: props.user.id, }) - .then(onFollowChange); + .then(onFollowChange); } function onFollowChange(user: Misskey.entities.UserDetailed) { @@ -75,17 +77,17 @@ async function onClick() { if (canceled) return; await os.api('following/delete', { - userId: props.user.id + userId: props.user.id, }); } else { if (hasPendingFollowRequestFromYou) { await os.api('following/requests/cancel', { - userId: props.user.id + userId: props.user.id, }); hasPendingFollowRequestFromYou = false; } else { await os.api('following/create', { - userId: props.user.id + userId: props.user.id, }); hasPendingFollowRequestFromYou = true; } diff --git a/packages/client/src/components/MkSignup.vue b/packages/client/src/components/MkSignup.vue index e6281b1f84..67d3bb5c70 100644 --- a/packages/client/src/components/MkSignup.vue +++ b/packages/client/src/components/MkSignup.vue @@ -9,7 +9,7 @@