Skip to content

Commit

Permalink
hide name fee when its not available
Browse files Browse the repository at this point in the history
  • Loading branch information
janmichek committed Apr 23, 2024
1 parent 43a1fb6 commit 48dfaf7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/components/AccountActivityDataCellNameClaimTxEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
<app-link :to="`/names/${activity.payload.tx.name}`">
{{ activity.payload.tx.name }}
</app-link>
<app-chip size="sm">
{{ formatAePrice(formatAettosToAe(activity.payload.tx.fee)) }}
<app-chip
v-if="activity.payload.tx.nameFee"
size="sm">
{{ formatAePrice(formatAettosToAe(activity.payload.tx.nameFee)) }}
</app-chip>
</template>

Expand Down
6 changes: 4 additions & 2 deletions src/components/NameHistoryDataCellNameClaimEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
:link-to="`/accounts/${payload.tx.accountId}`"/>

<app-tooltip>
<app-chip size="sm">
{{ formatAePrice(formatAettosToAe(payload.tx.fee), null) }}
<app-chip
v-if="formatAettosToAe(payload.tx.nameFee)"
size="sm">
{{ formatAePrice(formatAettosToAe(payload.tx.nameFee), null) }}
</app-chip>
<template #tooltip>
Fee
Expand Down
4 changes: 3 additions & 1 deletion src/components/TransactionCellNameClaimTx.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
{{ transactionData.name }}
</app-link>
</span>
<app-chip size="sm">
<app-chip
v-if="transactionData.nameFee"
size="sm">
{{ formatAePrice(formatAettosToAe(transactionData.nameFee)) }}
</app-chip>
</template>
Expand Down
4 changes: 3 additions & 1 deletion src/components/TransactionTypeTableNameClaimTx.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
</app-link>
</td>
</tr>
<tr class="transaction-type-panel-name-claim-tx__row">
<tr
v-if="transactionData.nameFee"
class="transaction-type-panel-name-claim-tx__row">
<th class="transaction-type-panel-name-claim-tx__table-header">
Activation Price
<hint-tooltip>
Expand Down

0 comments on commit 48dfaf7

Please sign in to comment.