Skip to content

Commit

Permalink
refactore(NotificationsOverview): add reset hours for email limit
Browse files Browse the repository at this point in the history
Show remaining hours until the account's email limit resets for the user

See: BEDS-870
  • Loading branch information
benji-bitfly authored and LuccaBitfly committed Oct 29, 2024
1 parent 0a5edaf commit 6c646e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/components/notifications/NotificationsOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const notificationsTotal = computed(() => {
const { user } = useUserStore()
const mailLimit = computed(() => user.value?.premium_perks.email_notifications_per_day ?? 0)
// TODO: replace with actual hours value when we get the endpoint.
const resetHours = ref(12)
const resetHours = computed(() => overview.value?.next_email_count_reset_timestamp ?? 0)
const tooltipEmail = computed(() => {
return $t('notifications.overview.email_tooltip', {
hours: resetHours.value,
Expand Down

0 comments on commit 6c646e6

Please sign in to comment.