Skip to content

Commit

Permalink
feat(NotifiacationsDashboardDialogEntity): add withdrawal to `entit…
Browse files Browse the repository at this point in the history
…y dialog`

See: BEDS-645
  • Loading branch information
benji-bitfly committed Oct 21, 2024
1 parent bd63e58 commit 546b833
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const {
watch: [ search ],
})
defineEmits<{ (e: 'filter-changed', value: string): void }>()
const { converter } = useValue()
const formatValueWei = (value: string) => {
return converter.value.weiToValue(`${value}`, { fixedDecimalCount: 5 })
.label
}
</script>

<template>
Expand Down Expand Up @@ -224,6 +229,30 @@ defineEmits<{ (e: 'filter-changed', value: string): void }>()
</BcLink>)
</template>
</BcAccordion>
<BcAccordion
v-if="details?.withdrawal?.length"
:items="details?.withdrawal"
:info-copy="$t('notifications.dashboards.dialog.entity.withdrawal')"
>
<template #heading>
{{ $t('notifications.dashboards.dialog.entity.withdrawal') }} ({{ details?.withdrawal?.length ?? 0 }})
</template>
<template #headingIcon>
<FontAwesomeIcon
:icon="faFileSignature"
class="notifications-dashboard-dialog-entity__icon__green"
/>
</template>
<template #item="{ item: withdrawalItem }">
<BcLink
:to="`/validator/${withdrawalItem.index}`"
class="link"
>
{{ withdrawalItem.index }}
</BcLink>
({{ formatValueWei(withdrawalItem.amount) }})
</template>
</BcAccordion>
<BcAccordion
v-if="details?.validator_back_online?.length"
:items="details?.validator_back_online"
Expand Down

0 comments on commit 546b833

Please sign in to comment.