mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
8e129c6001
commit
25c9b9585b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user