From c9684c9649e448c1aed7f366d34e7897904dea40 Mon Sep 17 00:00:00 2001 From: Jarsen <31397967+Jarsen136@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:41:06 +0200 Subject: [PATCH] Revert "feat: advance verify for profile changes" --- components/profile/FollowButton.vue | 6 +-- components/profile/create/Modal.vue | 19 +++----- components/profile/follow/UserRow.vue | 6 +-- .../shared/modals/keyboardShortcutsModal.vue | 20 ++------ composables/useVerifyAccount.ts | 47 ++++--------------- services/profile.ts | 1 - 6 files changed, 27 insertions(+), 72 deletions(-) diff --git a/components/profile/FollowButton.vue b/components/profile/FollowButton.vue index f8c139a244..bf90a42d18 100644 --- a/components/profile/FollowButton.vue +++ b/components/profile/FollowButton.vue @@ -17,7 +17,7 @@ const buttonRef = ref() const { $i18n } = useNuxtApp() const { accountId } = useAuth() -const { getCommonSignaturePair } = useVerifyAccount() +const { getSignaturePair } = useVerifyAccount() const isHovered = useElementHover(buttonRef) const { toast } = useToast() const { doAfterLogin } = useDoAfterlogin() @@ -39,7 +39,7 @@ const followConfig = computed(() => ({ doAfterLogin({ onLoginSuccess: async () => { loading.value = true - const signaturePair = await getCommonSignaturePair().catch((e) => { + const signaturePair = await getSignaturePair().catch((e) => { toast(e.message) loading.value = false return @@ -71,7 +71,7 @@ const unfollowConfig = computed(() => ({ label: $i18n.t('profile.unfollow'), onClick: async () => { loading.value = true - const signaturePair = await getCommonSignaturePair().catch((e) => { + const signaturePair = await getSignaturePair().catch((e) => { toast(e.message) loading.value = false return diff --git a/components/profile/create/Modal.vue b/components/profile/create/Modal.vue index 5f4f78cec6..0530153a8d 100644 --- a/components/profile/create/Modal.vue +++ b/components/profile/create/Modal.vue @@ -33,15 +33,10 @@