Skip to content

Commit

Permalink
Disable Delegations
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping committed Sep 18, 2023
1 parent 74024f8 commit a2979a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/modules/[chain]/staking/[validator].vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit a2979a7

Please sign in to comment.