- {{ key }}
+ {{ data.key }}
{{ token.name.toUpperCase() }}
@@ -61,12 +61,32 @@
import { formatNumber } from '@/utils/format/balance'
import { NeoSkeleton } from '@kodadot1/brick'
-import { ChainToken, useIdentityStore } from '@/stores/identity'
+import { ChainToken, type ChainType, useIdentityStore } from '@/stores/identity'
+const displayChainOrder: ChainType[] = [
+ 'polkadot',
+ 'polkadotHub',
+ 'kusama',
+ 'kusamaHub',
+ 'basilisk',
+]
const identityStore = useIdentityStore()
const { multiBalances } = useMultipleBalance(true)
+const multiBalancesChainsList = computed(() => {
+ return Object.keys(multiBalances.value.chains)
+ .sort(
+ (a, b) =>
+ displayChainOrder.indexOf(a as ChainType) -
+ displayChainOrder.indexOf(b as ChainType),
+ )
+ .map((key) => ({
+ key,
+ chain: multiBalances.value.chains[key],
+ }))
+})
+
const isBalanceLoading = computed(
() => identityStore.getStatusMultiBalances === 'loading',
)
diff --git a/components/collection/drop/Generative.vue b/components/collection/drop/Generative.vue
index 032d891f2c..48ca7903ca 100644
--- a/components/collection/drop/Generative.vue
+++ b/components/collection/drop/Generative.vue
@@ -62,6 +62,7 @@
v-dompurify-html="
$t('mint.unlockable.minimumFundsDescription', [
`${minimumFunds} ${token}`,
+ chainName,
])
"
class="minimum-funds-description" />
@@ -192,6 +193,7 @@ const isImageFetching = ref(false)
const isConfirmModalActive = ref(false)
const isAddFundModalActive = ref(false)
+const chainName = computed(() => getChainName(props.drop.chain))
const token = computed(() => prefixToToken[props.drop.chain])
export type DropMintedNft = DoResult & {
diff --git a/components/collection/drop/HolderOfGenerative.vue b/components/collection/drop/HolderOfGenerative.vue
index ab65c5fb21..011bd94eda 100644
--- a/components/collection/drop/HolderOfGenerative.vue
+++ b/components/collection/drop/HolderOfGenerative.vue
@@ -69,6 +69,7 @@
v-dompurify-html="
$t('mint.unlockable.minimumFundsDescription', [
`${minimumFunds} ${token}`,
+ chainName,
])
"
class="minimum-funds-description" />
@@ -194,6 +195,7 @@ const {
status,
} = useMetaTransaction()
+const chainName = computed(() => getChainName(props.drop.chain))
const token = computed(() => prefixToToken[props.drop.chain])
const mintedNft = ref()
diff --git a/components/common/autoTeleport/AutoTeleportActionButton.vue b/components/common/autoTeleport/AutoTeleportActionButton.vue
index 0b0558833f..87d5bdccc0 100644
--- a/components/common/autoTeleport/AutoTeleportActionButton.vue
+++ b/components/common/autoTeleport/AutoTeleportActionButton.vue
@@ -114,7 +114,7 @@ const amount = ref()
const {
isAvailable: isAutoTeleportAvailable,
- hasBalances,
+ isReady,
hasEnoughInCurrentChain,
hasEnoughInRichestChain,
optimalTransition,
@@ -163,12 +163,12 @@ const showAutoTeleport = computed(
() =>
!hasEnoughInCurrentChain.value &&
isAutoTeleportAvailable.value &&
- hasBalances.value &&
+ isReady.value &&
!props.disabled,
)
const allowAutoTeleport = computed(
- () => needsAutoTelport.value && canAutoTeleport.value && hasBalances.value,
+ () => needsAutoTelport.value && canAutoTeleport.value && isReady.value,
)
const hasNoFundsAtAll = computed(
@@ -188,7 +188,7 @@ const autoTeleportLabel = computed(() => {
return props.label
}
- if (!hasBalances.value) {
+ if (!isReady.value) {
return $i18n.t('autoTeleport.checking')
}
@@ -291,7 +291,7 @@ watchSyncEffect(() => {
}
})
-defineExpose({ hasBalances, optimalTransition })
+defineExpose({ isReady, optimalTransition })
diff --git a/components/profile/ProfileDetail.vue b/components/profile/ProfileDetail.vue
index 4e6dee70d9..8b45056513 100644
--- a/components/profile/ProfileDetail.vue
+++ b/components/profile/ProfileDetail.vue
@@ -149,13 +149,25 @@
:label="$t('activity.sold')"
url-param="sold"
class="ml-4" />
+
+