Merge pull request #456 from sxlmnwb/master

routerlink route account delegation to validator
This commit is contained in:
ping 2023-06-23 13:10:39 +08:00 committed by GitHub
commit c8e5f7c3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -333,11 +333,13 @@ const amount = computed({
<tbody> <tbody>
<tr v-for="(item, index) in walletStore.delegations" :key="index"> <tr v-for="(item, index) in walletStore.delegations" :key="index">
<td> <td>
<RouterLink class="link link-primary no-underline" :to="`/${chain}/staking/${item?.delegation?.validator_address}`">
{{ {{
format.validatorFromBech32( format.validatorFromBech32(
item?.delegation?.validator_address item?.delegation?.validator_address
) )
}} }}
</RouterLink>
</td> </td>
<td>{{ format.formatToken(item?.balance) }}</td> <td>{{ format.formatToken(item?.balance) }}</td>
<td> <td>

View File

@ -217,7 +217,13 @@ const tipMsg = computed(() => {
<div class="flex items-center"> <div class="flex items-center">
<Icon icon="mdi-email-outline" class="text-xl mr-1" /> <Icon icon="mdi-email-outline" class="text-xl mr-1" />
<span class="font-bold mr-2">{{ $t('staking.contact') }}: </span> <span class="font-bold mr-2">{{ $t('staking.contact') }}: </span>
<span> {{ v.description?.security_contact }}</span> <a
v-if="v.description?.security_contact"
:href="'mailto:' + v.description.security_contact || '#' "
class="cursor-pointer"
>
{{ v.description?.security_contact || '-' }}
</a>
</div> </div>
</div> </div>
<p class="text-sm mt-4 mb-3 font-medium">{{ $t('staking.validator_status') }}</p> <p class="text-sm mt-4 mb-3 font-medium">{{ $t('staking.validator_status') }}</p>