From 0b8762cd0af2a741b56dbf55a24b678707881841 Mon Sep 17 00:00:00 2001 From: teaSummer Date: Sat, 20 Sep 2025 20:07:30 +0800 Subject: [PATCH] fix(app): properly show all versions and notify loaders (#4395) * fix(app): properly show all versions and notify loaders * fix lint --- .../src/components/ui/NotificationItem.vue | 14 +++++++------- apps/frontend/src/pages/[type]/[id].vue | 6 ++++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/frontend/src/components/ui/NotificationItem.vue b/apps/frontend/src/components/ui/NotificationItem.vue index 1e34a302..662c98a7 100644 --- a/apps/frontend/src/components/ui/NotificationItem.vue +++ b/apps/frontend/src/components/ui/NotificationItem.vue @@ -173,7 +173,7 @@ for @@ -391,12 +391,6 @@ const user = computed(() => props.notification.extra_data.user) const organization = computed(() => props.notification.extra_data.organization) const invitedBy = computed(() => props.notification.extra_data.invited_by) -const loaderCategories = computed(() => { - return tags.value.loaders.filter((loader) => { - return version.value?.loaders?.includes(loader.name) - }) -}) - const threadLink = computed(() => { if (report.value) { return `/dashboard/report/${report.value.id}` @@ -462,6 +456,12 @@ function getMessages() { } return messages } + +function getLoaderCategories(ver) { + return tags.value.loaders.filter((loader) => { + return ver?.loaders?.includes(loader.name) + }) +}