Skip to content

Commit

Permalink
refactor: adapt dashboard notification table to type changes
Browse files Browse the repository at this point in the history
See: BEDS-481
  • Loading branch information
LuccaBitfly committed Oct 2, 2024
1 parent b29696d commit b38dbbb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions frontend/components/notifications/DashboardsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ const { overview } = useNotificationsDashboardOverviewStore()
<template #table>
<ClientOnly fallback-tag="span">
<BcTable
:data="notificationsDashboards"
data-key="notification_id"
:data="wrapWithIdentifier(
notificationsDashboards,
row => `${row.is_account_dashboard}-${row.dashboard_id}-${row.group_id}-${row.epoch}`,
)"
data-key="wrapped_identifier"
:expandable="!colsVisible.notifications"
:cursor
:page-size
Expand All @@ -89,7 +92,7 @@ const { overview } = useNotificationsDashboardOverviewStore()
</template>
</Column>
<Column
field="timestamp"
field="epoch"
sortable
header-class="col-age"
body-class="col-age"
Expand All @@ -99,8 +102,8 @@ const { overview } = useNotificationsDashboardOverviewStore()
</template>
<template #body="slotProps">
<BcFormatTimePassed
:value="slotProps.data.timestamp"
type="go-timestamp"
:value="slotProps.data.epoch"
type="epoch"
/>
</template>
</Column>
Expand Down

0 comments on commit b38dbbb

Please sign in to comment.