From 635212df10a84620917a86e3fa47560bb1247515 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Tue, 17 Dec 2024 10:24:49 +0100 Subject: [PATCH] fix status typos --- components/overlays/SessionProxiesOverlay.vue | 8 +++---- components/tabs/MessagingTab.vue | 6 ++--- components/tabs/TeerDaysTab.vue | 4 ++-- components/tabs/VouchersTab.vue | 8 +++---- components/tabs/WalletTab.vue | 22 +++++++++---------- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/components/overlays/SessionProxiesOverlay.vue b/components/overlays/SessionProxiesOverlay.vue index 2e5dd5b..22ecb11 100644 --- a/components/overlays/SessionProxiesOverlay.vue +++ b/components/overlays/SessionProxiesOverlay.vue @@ -186,7 +186,7 @@ const updateAuthorization = async () => { }; const createSessionProxy = async () => { - txStatus.value = "creating session proxy...."; + txStatus.value = "Creating session proxy...."; openStatusOverlay(); await cryptoWaitReady(); const generatedMnemonic = mnemonicGenerate(); @@ -258,7 +258,7 @@ const modifySessionProxyRole = async ( return; } isSignerBusy.value = true; - txStatus.value = "modifying session proxy role...."; + txStatus.value = "Modifying session proxy role...."; openStatusOverlay(); const injector = accountStore.hasInjector ? accountStore.injector : null; const seed = accountStore.sessionProxySeed(proxy); @@ -316,12 +316,12 @@ const handleTopResult = (result, successMsg?) => { } } console.error(`unknown result: ${result}`); - txStatus.value = "😞 Unknown Result"; + txStatus.value = "😞 Unknown result"; }; const handleTopError = (err) => { console.error(`error: ${err}`); - txStatus.value = `😞 Submission Failed: ${err}`; + txStatus.value = `😞 Submission failed: ${err}.`; }; const showStatusOverlay = ref(false); diff --git a/components/tabs/MessagingTab.vue b/components/tabs/MessagingTab.vue index 3a24a2a..e44dcb2 100644 --- a/components/tabs/MessagingTab.vue +++ b/components/tabs/MessagingTab.vue @@ -587,7 +587,7 @@ const submitSendForm = () => { const sendPrivately = async () => { console.log("sending message on incognitee"); - txStatus.value = "⌛ sending message privately on incognitee"; + txStatus.value = "⌛ Sending message privately on incognitee"; const account = accountStore.account; if ( accountStore.getDecimalBalanceTransferable(incogniteeSidechain.value) < @@ -655,12 +655,12 @@ const handleTopResult = (result, successMsg?) => { } } console.error(`unknown result: ${result}`); - txStatus.value = "😞 Unknown Result"; + txStatus.value = "😞 Unknown result"; }; const handleTopError = (err) => { console.error(`error: ${err}`); - txStatus.value = `😞 Submission Failed: ${err}`; + txStatus.value = `😞 Submission failed: ${err}.`; }; const scanResult = ref("No QR code data yet"); diff --git a/components/tabs/TeerDaysTab.vue b/components/tabs/TeerDaysTab.vue index 35757d1..f01a5cc 100644 --- a/components/tabs/TeerDaysTab.vue +++ b/components/tabs/TeerDaysTab.vue @@ -1069,7 +1069,7 @@ const txResHandlerIntegritee = ({ events = [], status, txHash }) => { // Other, CannotLookup, BadOrigin, no extra info errorInfo = dispatchError.toString(); } - txStatus.value = `😞 Transaction Failed! ${section}.${method}::${errorInfo}`; + txStatus.value = `😞 Transaction failed! ${section}.${method}::${errorInfo}.`; } else if (section + ":" + method === "system:ExtrinsicSuccess") { txStatus.value = `❤️️ Transaction successful!`; // Close the overlay automatically after 5 seconds if successful @@ -1079,7 +1079,7 @@ const txResHandlerIntegritee = ({ events = [], status, txHash }) => { }; const txErrHandlerIntegritee = (err) => { - txStatus.value = `😞 Transaction Failed: ${err.toString()}`; + txStatus.value = `😞 Transaction failed: ${err.toString()}.`; }; const showChooseWalletOverlay = ref(false); diff --git a/components/tabs/VouchersTab.vue b/components/tabs/VouchersTab.vue index 1e12988..ac92708 100644 --- a/components/tabs/VouchersTab.vue +++ b/components/tabs/VouchersTab.vue @@ -466,7 +466,7 @@ const doForgetVoucher = () => { const fundNewVoucher = async () => { console.log("sending funds on incognitee"); - txStatus.value = "⌛ sending funds privately on incognitee"; + txStatus.value = "⌛ Sending funds privately on incognitee."; const amount = accountStore.decimalAmountToBigInt(sendAmount.value); const account = accountStore.account; const encoder = new TextEncoder(); @@ -555,16 +555,16 @@ const handleTopResult = (result, successMsg?) => { return; } if (result.status.isInvalid) { - txStatus.value = "😞 Invalid (unspecified reason)"; + txStatus.value = "😞 Invalid (unspecified reason)."; return; } } console.error(`unknown result: ${result}`); - txStatus.value = "😞 Unknown Result"; + txStatus.value = "😞 Unknown result."; }; const handleTopError = (err) => { console.error(`error: ${err}`); - txStatus.value = `😞 Submission Failed: ${err}`; + txStatus.value = `😞 Submission failed: ${err}.`; }; const showShareVoucher = ref(false); diff --git a/components/tabs/WalletTab.vue b/components/tabs/WalletTab.vue index bd9e559..a7e62d4 100644 --- a/components/tabs/WalletTab.vue +++ b/components/tabs/WalletTab.vue @@ -1170,8 +1170,8 @@ const setRecipientAddressToSelf = () => { }; const txResHandlerShieldingTarget = ({ events = [], status, txHash }) => { status.isFinalized - ? (txStatus.value = `😀 Finalized. Finalized. You should see your Incognitee balance increase in seconds. Please move to the Private Balance tab`) - : (txStatus.value = `⌛ Current transaction status: ${status.type}. please be patient a few more seconds. you should see your L1 balance going down`); + ? (txStatus.value = `😀 Finalized. You should see your Incognitee balance increase in seconds. Please move to the private balance tab.`) + : (txStatus.value = `⌛ Current transaction status: ${status.type}. Please be patient a few more seconds. You should see your L1 balance going down.`); isSignerBusy.value = false; // Loop through Vec to display all events events.forEach(({ _, event: { data, method, section } }) => { @@ -1205,7 +1205,7 @@ const txResHandlerShieldingTarget = ({ events = [], status, txHash }) => { // Other, CannotLookup, BadOrigin, no extra info errorInfo = dispatchError.toString(); } - txStatus.value = `😞 Transaction Failed! ${section}.${method}::${errorInfo}`; + txStatus.value = `😞 Transaction failed! ${section}.${method}::${errorInfo}.`; } else if (section + ":" + method === "system:ExtrinsicSuccess") { console.log( `✅ Transaction successful with status: ${status} hash: ${txHash}`, @@ -1215,7 +1215,7 @@ const txResHandlerShieldingTarget = ({ events = [], status, txHash }) => { }; const txErrHandlerShieldingTarget = (err) => - (txStatus.value = `😞 Transaction Failed: ${err.toString()}`); + (txStatus.value = `😞 Transaction failed: ${err.toString()}.`); const handleTopResult = (result, successMsg?) => { console.log("TOP result: " + result); @@ -1232,17 +1232,17 @@ const handleTopResult = (result, successMsg?) => { return; } if (result.status.isInvalid) { - txStatus.value = "😞 Invalid (unspecified reason)"; + txStatus.value = "😞 Invalid (unspecified reason)."; return; } } console.error(`unknown result: ${result}`); - txStatus.value = "😞 Unknown Result"; + txStatus.value = "😞 Unknown result."; }; const handleTopError = (err) => { console.error(`error: ${err}`); - txStatus.value = `😞 Submission Failed: ${err}`; + txStatus.value = `😞 Submission failed: ${err}.`; }; const shield = async () => { @@ -1253,7 +1253,7 @@ const shield = async () => { return; } isSignerBusy.value = true; - txStatus.value = "⌛ awaiting signature and connection"; + txStatus.value = "⌛ Awaiting signature and connection..."; console.log("local api ready: " + props.api?.isReady); if (incogniteeStore.vault && props.api?.isReady) { const amount = accountStore.decimalAmountToBigInt(shieldAmount.value); @@ -1271,7 +1271,7 @@ const shield = async () => { const unshield = async () => { console.log("will unshield 30% of your private funds to same account on L1"); - txStatus.value = "⌛ will unshield to L1"; + txStatus.value = "⌛ Will unshield to L1."; const amount = accountStore.decimalAmountToBigInt(unshieldAmount.value); const account = accountStore.account; const nonce = new u32( @@ -1308,7 +1308,7 @@ const unshield = async () => { const sendPrivately = async () => { console.log("sending funds on incognitee"); - txStatus.value = "⌛ sending funds privately on incognitee"; + txStatus.value = "⌛ Sending funds privately on Incognitee."; const amount = accountStore.decimalAmountToBigInt(sendAmount.value); const account = accountStore.account; @@ -1351,7 +1351,7 @@ const sendPrivately = async () => { }; const submitGuess = async () => { console.log("submit guess: ", guess.value); - txStatus.value = "⌛ privately submitting your guess to incognitee"; + txStatus.value = "⌛ Privately submitting your guess to Incognitee."; const account = accountStore.account; const nonce = new u32( new TypeRegistry(),