Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: If user look at the activity of the selected account, then in the third step the view will break #672

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/AccountActivityCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ const activityDescription = computed(() => {
return 'Internal transfer'
case 'Aex9TransferEvent':
return 'Transferred to'
case 'Aex141TransferEvent':
return 'Transferred to'
case 'InternalContractCallEvent':
return 'Internal call'
default:
Expand Down
3 changes: 2 additions & 1 deletion src/components/AccountActivityDataCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const isActivityCell = computed(() => {
props.activity.type === 'NamePreclaimTxEvent' ||
props.activity.type === 'InternalContractCallEvent' ||
props.activity.type === 'InternalTransferEvent' ||
props.activity.type === 'Aex9TransferEvent') {
props.activity.type === 'Aex9TransferEvent' ||
props.activity.type === 'Aex141TransferEvent') {
return true
} else {
return false
Expand Down
24 changes: 24 additions & 0 deletions src/components/AccountActivityDataCellAex141TransferEvent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<value-hash-ellipsed
:hash="activityPayload.recipientId"
:link-to="`/accounts/${activityPayload.recipientId}`"/>

<app-chip size="sm">
{{ activityPayload.tokenName }}
</app-chip>
</template>

<script setup>
import AppChip from '@/components/AppChip'
import ValueHashEllipsed from '@/components/ValueHashEllipsed'

const props = defineProps({
activity: {
type: Object,
required: true,
},
})

const activityPayload = computed(() => props.activity.payload)

</script>
2 changes: 2 additions & 0 deletions src/components/AccountActivityTypeCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const activityType = computed(() => {

case 'Aex9TransferEvent':
return 'AEX-9'
case 'Aex141TransferEvent':
return 'AEX-141'
case 'InternalContractCallEvent':
if (
SH_DEX_CONTRACTS.includes(props.activity.payload.contractId)) {
Expand Down
Loading