Fix broken dashboard (#1328)

This commit is contained in:
Geometrically
2023-08-22 11:59:45 -04:00
committed by GitHub
parent 0a59a06121
commit 2454a03c2b
3 changed files with 9 additions and 4 deletions

View File

@@ -110,9 +110,10 @@
/>
<div v-else-if="type === 'project_update'" class="version-list">
<div
v-for="notif in notification.grouped_notifs
v-for="notif in (notification.grouped_notifs
? [notification, ...notification.grouped_notifs]
: [notification]"
: [notification]
).filter((x) => x.extra_data.version)"
:key="notif.id"
class="version-link"
>

View File

@@ -39,7 +39,11 @@ export const getProjectLink = (project) => {
}
export const getVersionLink = (project, version) => {
return getProjectLink(project) + '/version/' + version.id
if (version) {
return getProjectLink(project) + '/version/' + version.id
} else {
return getProjectLink(project)
}
}
export const isApproved = (project) => {

View File

@@ -155,7 +155,7 @@ const extraNotifs = computed(() => allNotifs.length - notifications.value.length
display: grid;
grid-template:
'header header'
'notifications analytics' / 1fr 1fr;
'notifications analytics' / 1fr auto;
gap: var(--spacing-card-md);
> .universal-card {