Skip to content

Commit

Permalink
feat(NotificationsOverview): change email limit color to red when…
Browse files Browse the repository at this point in the history
… `limit reached`

See: BEDS-482
  • Loading branch information
marcel-bitfly committed Dec 9, 2024
1 parent a2c00c2 commit 0c931e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/components/notifications/NotificationsOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const emit = defineEmits<{
{{ hasEmail ? $t('common.active') : $t('common.inactive') }}
</div>
<div v-if="hasEmail" class="inline-items">
<span class="small_text">{{ last24hEmailsCount }}/{{ mailLimit }} {{ $t('common.units.per_day') }}</span>
<span
class="small_text"
:class="{ is_limit_reached: last24hEmailsCount >= mailLimit }"
>{{ last24hEmailsCount }}/{{ mailLimit }} {{ $t('common.units.per_day') }}</span>
<BcTooltip
tooltip-width="220px"
:text="tooltipEmail"
Expand Down Expand Up @@ -213,6 +216,9 @@ const emit = defineEmits<{
align-items: center;
gap: .625rem;
}
.is_limit_reached {
color: var(--negative-color);
}
a:hover {
color: var(--light-blue);
}
Expand Down

0 comments on commit 0c931e8

Please sign in to comment.