From 25c9b9585bbacad69b0a0d6d620c975e08964726 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Fri, 1 Nov 2019 00:37:56 +0100 Subject: [PATCH] Translate dropdown values on notification page @mattwr18 this solves the problem by 50%. If you switch the language and click on the notifications dropdown filter, you will see the translated labels. However, the label showing the selected value will not change, probably because `` caches the selected option :disappointed:. --- .../NotificationsDropdownFilter.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/webapp/components/NotificationsDropdownFilter/NotificationsDropdownFilter.vue b/webapp/components/NotificationsDropdownFilter/NotificationsDropdownFilter.vue index 7c5e0a42a..a179b54d0 100644 --- a/webapp/components/NotificationsDropdownFilter/NotificationsDropdownFilter.vue +++ b/webapp/components/NotificationsDropdownFilter/NotificationsDropdownFilter.vue @@ -40,12 +40,16 @@ export default { data() { return { selected: this.$t('notifications.filterLabel.all'), - filterOptions: [ + } + }, + computed: { + filterOptions() { + return [ { label: this.$t('notifications.filterLabel.all'), value: null }, { label: this.$t('notifications.filterLabel.read'), value: true }, { label: this.$t('notifications.filterLabel.unread'), value: false }, - ], - } + ] + }, }, methods: { filterNotifications(option, toggleMenu) {