Skip to content
Snippets Groups Projects
Commit ec42cbaf authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix translations on Vue-enabled notification pages

parent 1f72105c
No related branches found
No related tags found
1 merge request!1074Resolve "Fix translations on Vue-enabled notification pages"
Pipeline #83148 passed with warnings
......@@ -22,7 +22,7 @@
<v-list-item-action v-if="notification.link">
<v-btn text :href="notification.link">
{{ this.$root.django.gettext('More information →') }}
{{ $root.django.gettext('More information →') }}
</v-btn>
</v-list-item-action>
......
......@@ -4,14 +4,14 @@
:pollInterval="1000"
>
<template v-slot="{ result: { error, data }, isLoading }">
<v-list two-line v-if="data && data.myNotifications.notifications">
<v-list two-line v-if="data && data.myNotifications.notifications.length">
<NotificationItem
v-for="notification in data.myNotifications.notifications"
:key="notification.id"
:notification="notification"
/>
</v-list>
<p v-else>{{ this.$root.django.gettext('No notifications available yet.') }}</p>
<p v-else>{{ $root.django.gettext('No notifications available yet.') }}</p>
</template>
</ApolloQuery>
</template>
......
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