From 4f1e353d06a1a7298bf34bf8c7943788625d6dd3 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 27 Jun 2023 17:40:16 -0700 Subject: [PATCH] refactor: code readability for callbacks feedback --- components/UserProfile/CallbackFeedback.vue | 26 ++++++------ store/account.ts | 20 +++++----- store/callbackActions.ts | 14 +++++-- store/installKey.ts | 44 ++++++++++++--------- types/server.ts | 6 ++- 5 files changed, 64 insertions(+), 46 deletions(-) diff --git a/components/UserProfile/CallbackFeedback.vue b/components/UserProfile/CallbackFeedback.vue index 1b99909dd..075c84ff7 100644 --- a/components/UserProfile/CallbackFeedback.vue +++ b/components/UserProfile/CallbackFeedback.vue @@ -20,9 +20,9 @@ const accountStore = useAccountStore(); const callbackActionsStore = useCallbackActionsStore(); const installKeyStore = useInstallKeyStore(); -const { updating, updateSuccess } = storeToRefs(accountStore); +const { accountUpdating, accountSuccess } = storeToRefs(accountStore); const { callbackLoading } = storeToRefs(callbackActionsStore); -const { keyUrl, keyType, installing, success } = storeToRefs(installKeyStore); +const { keyUrl, keyType, keyInstalling, keySuccess } = storeToRefs(installKeyStore); const heading = computed(() => callbackLoading.value ? 'Performing actions' : 'Finished performing actions'); const subheading = computed(() => callbackLoading.value ? 'Please keep this window open' : ''); @@ -44,8 +44,8 @@ const { text, copy, copied, isSupported } = useClipboard({ source: keyUrl.value
@@ -55,14 +55,14 @@ const { text, copy, copied, isSupported } = useClipboard({ source: keyUrl.value -