Disable Delegations

This commit is contained in:
liangping 2023-09-18 13:23:25 +08:00
parent 74024f825c
commit a2979a75ef

View File

@ -138,12 +138,9 @@ onMounted(() => {
});
// Disable delegations due to its bad performance
// Comment out the following code if you want to enable it
// pageload(1)
// blockchain.rpc.getDistributionValidatorSlashes(validator).then(res => {
// // delegations.value = res
// console.log('slashs:', res)
// })
}
});
let showCopyToast = ref(0);
@ -489,7 +486,7 @@ function pageload(p: number) {
</div>
</div>
<div class="mt-5 bg-base-100 shadow rounded p-4 hidden">
<div v-if="delegations.delegation_responses" class="mt-5 bg-base-100 shadow rounded p-4 ">
<div class="text-lg mb-4 font-semibold">{{ $t('account.delegations') }}
<span class="float-right"> {{ delegations.delegation_responses?.length || 0 }} / {{ delegations.pagination?.total || 0 }} </span>
</div>