Skip to content

Commit

Permalink
Disable submit button on action
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Sep 29, 2023
1 parent adc4e60 commit 48cd50a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/header/modals/ModalAccountUnification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<step5
:account-name="accountName"
:selected-evm-address="selectedEvmAddress"
:is-busy="isLoading"
@next="updateSteps(6)"
/>
</div>
Expand Down Expand Up @@ -93,6 +94,7 @@ export default defineComponent({
const isClosing = ref<boolean>(false);
const currentStep = ref<number>(0);
const { currentAccount } = useAccount();
const isLoading = computed<boolean>(() => store.getters['general/isLoading']);
const {
selectedEvmAddress,
Expand Down Expand Up @@ -193,6 +195,7 @@ export default defineComponent({
isFetchingXc20Tokens,
isLoadingDappStaking,
accountName,
isLoading,
closeModal,
backModal,
updateSteps,
Expand Down
6 changes: 5 additions & 1 deletion src/components/header/modals/account-unification/Step5.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<!-- Action -->
<div>
<astar-button class="btn" @click="next()">
<astar-button :disabled="isBusy" class="btn" @click="next()">
{{ $t('dappStaking.modals.submit') }}
</astar-button>
</div>
Expand All @@ -55,6 +55,10 @@ export default defineComponent({
type: String,
required: true,
},
isBusy: {
type: Boolean,
required: true,
},
},
emits: ['next'],
setup(props, { emit }) {
Expand Down

0 comments on commit 48cd50a

Please sign in to comment.