Skip to content

Commit

Permalink
fix: disable send button while getting quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
annipi committed Nov 20, 2024
1 parent 750e942 commit 7241c01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/common/styles/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

.text-balance {
text-wrap: balance;
}

.grecaptcha-badge {
bottom:70px !important;
}
6 changes: 5 additions & 1 deletion src/pegout/components/PegoutForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<v-col cols="auto">
<v-btn-rsk v-if="!pegOutFormState.matches(['loading'])"
@click="executeRecaptcha"
:disabled="!isValid
:disabled="!isValid || loading
|| pegOutFormState.matches(['goingHome'])"
>
<template #append>
Expand Down Expand Up @@ -174,6 +174,7 @@ export default defineComponent({
const isWalletAuthorizedToSign = ref(true);
const diffShown = ref(false);
const clearAmount = ref(false);
const loading = ref(true);
const pegOutTxState = useState<PegOutTxState>('pegOutTx');
const flyoverPegoutState = useState<FlyoverPegoutState>('flyoverPegout');
Expand Down Expand Up @@ -390,12 +391,14 @@ export default defineComponent({
}
function getQuotes() {
loading.value = true;
loadingQuotes.value = true;
getPegoutQuotes(account.value)
.catch(handlePegoutError)
.finally(() => {
loadingQuotes.value = false;
showStep.value = true;
loading.value = false;
});
}
Expand Down Expand Up @@ -475,6 +478,7 @@ export default defineComponent({
flyoverResponded,
clearForError,
clearAmount,
loading,
};
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/pegout/components/PegoutOption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<template v-else>
<v-text-field
:v-model="session.btcDerivedAddress || 'Address needs to be generated'"
flat
flat readonly
hide-details
density="compact"
rounded="lg"
Expand Down

0 comments on commit 7241c01

Please sign in to comment.