Skip to content

Commit

Permalink
fix status typos
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Dec 17, 2024
1 parent 1cc2f23 commit 635212d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions components/overlays/SessionProxiesOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions components/tabs/MessagingTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) <
Expand Down Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions components/tabs/TeerDaysTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions components/tabs/VouchersTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
22 changes: 11 additions & 11 deletions components/tabs/WalletTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<EventRecord> to display all events
events.forEach(({ _, event: { data, method, section } }) => {
Expand Down Expand Up @@ -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}`,
Expand All @@ -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);
Expand All @@ -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 () => {
Expand All @@ -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);
Expand All @@ -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(
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 635212d

Please sign in to comment.