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 `<ds-menu>` caches the selected option 😞.
This commit is contained in:
roschaefer 2019-11-01 00:37:56 +01:00 committed by mattwr18
parent 8e129c6001
commit 25c9b9585b

View File

@ -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) {