diff --git a/components/notification/NotificationGroupedFollow.vue b/components/notification/NotificationGroupedFollow.vue index 138f05e4..d0cfa4c5 100644 --- a/components/notification/NotificationGroupedFollow.vue +++ b/components/notification/NotificationGroupedFollow.vue @@ -5,7 +5,11 @@ const { items } = defineProps<{ items: GroupedNotifications }>() -const count = computed(() => items.items.length) +const maxVisibleFollows = 5 +const follows = computed(() => items.items) +const visibleFollows = computed(() => follows.value.slice(0, maxVisibleFollows)) +const count = computed(() => follows.value.length) +const countPlus = computed(() => Math.max(count.value - maxVisibleFollows, 0)) const isExpanded = ref(false) const lang = computed(() => { return (count.value > 1 || count.value === 0) ? undefined : items.items[0].status?.language @@ -17,16 +21,29 @@ const lang = computed(() => {