Skip to content

Commit

Permalink
feat(DashboardTableValidators): change representation of `validator i…
Browse files Browse the repository at this point in the history
…ndexes`

In `DashboardTableSummary` more then `3 indexes` should not be shown.

See: BEDS-649
  • Loading branch information
benji-bitfly committed Oct 28, 2024
1 parent 4ab74db commit 7192f4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"BcToggle",
"DashboardChartSummaryChartFilter",
"DashboardGroupManagementModal",
"DashboardTableValidators",
"DashboardValidatorManagmentModal",
"NotificationMachinesTable",
"NotificationsClientsTable",
Expand Down
15 changes: 9 additions & 6 deletions frontend/components/dashboard/table/DashboardTableValidators.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,24 @@ const cappedValidators = computed(() =>

<template>
<div class="validator_column">
<div class="validators">
<span v-if="cappedValidators.length <= 3" class="validators">
<template
v-for="v in cappedValidators"
:key="v"
v-for="validator in cappedValidators"
:key="validator"
>
<BcLink
:to="`/validator/${v}`"
:to="`/validator/${validator}`"
target="_blank"
class="link validator_link"
>
{{ v }}
{{ validator }}
</BcLink>
<span>, </span>
</template>
</div>
</span>
<span v-else>
{{ cappedValidators.length }} {{ $t('common.validator', cappedValidators.length) }}
</span>
<FontAwesomeIcon
v-if="validators?.length"
class="link popout"
Expand Down

0 comments on commit 7192f4a

Please sign in to comment.