Skip to content

Commit

Permalink
Merge pull request kodadot#9786 from hassnian/issue-9774
Browse files Browse the repository at this point in the history
feat: Massmint confirmation modal loading wheel
  • Loading branch information
yangwao authored Mar 17, 2024
2 parents 79044e2 + c06d916 commit 773bd24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/collection/drop/modal/PaidMint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,17 @@ const mintButton = computed(() => {
if (generatingVariations) {
return {
label: `${$i18n.t('drops.generatingVariations')} ~ 5s `,
label: `${$i18n.t('drops.generatingVariations')} ~ 5s`,
disabled: true,
loading: true,
}
}
if (!canMint.value) {
return { label: $i18n.t('loader.ipfs'), disabled: true }
return {
label: `${$i18n.t('loader.ipfs')} ~ 15s`,
disabled: true,
}
}
return { label: $i18n.t('drops.proceedToSigning'), disabled: false }
Expand Down
1 change: 1 addition & 0 deletions components/collection/drop/modal/paid/MintOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
ref="autoteleport"
:label="mintButton.label"
:disabled="mintButton.disabled"
:loading="mintButton.disabled"
:amount="minimumFunds"
:actions="[action]"
:parent-ready="!modalLoading"
Expand Down
4 changes: 4 additions & 0 deletions components/common/autoTeleport/AutoTeleportActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
variant="k-accent"
no-shadow
:disabled="isDisabled"
:loading="loading"
:loading-with-label="loading"
class="flex flex-grow btn-height capitalize"
@click="handleSubmit" />
</div>
Expand Down Expand Up @@ -108,6 +110,7 @@ const props = withDefaults(
interaction?: ActionlessInteraction
hideTop?: boolean
parentReady?: boolean
loading?: boolean
}>(),
{
autoCloseModalDelayModal: undefined,
Expand All @@ -119,6 +122,7 @@ const props = withDefaults(
label: '',
hideTop: false,
parentReady: true,
loading: false,
},
)
Expand Down

0 comments on commit 773bd24

Please sign in to comment.