Skip to content
Snippets Groups Projects
Commit 90c8d856 authored by Julian's avatar Julian
Browse files

Display the "no_notifications" message better

parent d42cd5c7
No related branches found
No related tags found
1 merge request!1125Resolve "[Vue] Notifications look ugly"
Pipeline #102915 failed
......@@ -11,20 +11,25 @@
<v-icon color="white" v-else>mdi-bell-outline</v-icon>
</v-btn>
</template>
<v-list nav three-line dense v-if="data && data.myNotifications && data.myNotifications.notifications.length">
<template v-for="notification in data.myNotifications.notifications">
<NotificationItem
:key="notification.id"
:notification="notification"
/>
<v-divider
v-if="notification !== data.myNotifications.notifications[data.myNotifications.notifications.length - 1]"
></v-divider>
<v-list nav three-line dense>
<v-subheader>{{ $t("notifications.notifications") }}</v-subheader>
<template v-if="data && data.myNotifications && data.myNotifications.notifications.length">
<template v-for="notification in data.myNotifications.notifications">
<NotificationItem
:key="notification.id"
:notification="notification"
/>
<v-divider
v-if="notification !== data.myNotifications.notifications[data.myNotifications.notifications.length - 1]"
></v-divider>
</template>
</template>
<template v-else>
<v-list-item>
{{ $t("notifications.no_notifications") }}
</v-list-item>
</template>
</v-list>
<p v-else>
{{ $t("notifications.no_notifications") }}
</p>
</v-menu>
</template>
</ApolloQuery>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment