From a99fecc2bcd0f7e8126f5e6c286588fd727efd09 Mon Sep 17 00:00:00 2001 From: marcel-bitfly <174338434+marcel-bitfly@users.noreply.github.com> Date: Mon, 4 Nov 2024 08:32:28 +0100 Subject: [PATCH] fix: show `3 validator indexes` or correct `validator count` On DashboardTableSummary See: BEDS-649 --- .../dashboard/table/DashboardTableValidators.vue | 15 +++++++-------- .../components/dashboard/table/SummaryValue.vue | 8 +++++++- frontend/utils/dashboard/validator.ts | 7 ------- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/frontend/components/dashboard/table/DashboardTableValidators.vue b/frontend/components/dashboard/table/DashboardTableValidators.vue index 477c162c7..a1359940f 100644 --- a/frontend/components/dashboard/table/DashboardTableValidators.vue +++ b/frontend/components/dashboard/table/DashboardTableValidators.vue @@ -7,7 +7,6 @@ import type { } from '~/types/dashboard/summary' import { DashboardValidatorSubsetModal } from '#components' import { getGroupLabel } from '~/utils/dashboard/group' -import { sortValidatorIds } from '~/utils/dashboard/validator' import type { DashboardKey } from '~/types/dashboard' import type { VDBGroupSummaryData, @@ -21,6 +20,7 @@ interface Props { groupId?: number, row: VDBSummaryTableRow, timeFrame?: SummaryTimeFrame, + validatorCount: number, validators: number[], } const props = defineProps() @@ -50,17 +50,16 @@ const openValidatorModal = () => { const groupName = computed(() => { return getGroupLabel($t, props.groupId, groups.value, $t('common.total')) }) - -const cappedValidators = computed(() => - sortValidatorIds(props.validators).slice(0, 10), -)