-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Barbuddy Bug #652
base: main
Are you sure you want to change the base?
Fix Barbuddy Bug #652
Conversation
Deploying outsite-nl with Cloudflare Pages
|
Deploying dwhdelft-nl with Cloudflare Pages
|
5224e40
to
e5f5b4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the useful workaround, this resolves the issue indeed!
v-for="buddy in barBuddies.filter( | ||
(b) => b.sites.indexOf(runtimeConfig.public.domain) !== -1 && b[$i18n.locale] | ||
)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v-for="buddy in barBuddies.filter( | |
(b) => b.sites.indexOf(runtimeConfig.public.domain) !== -1 && b[$i18n.locale] | |
)" | |
v-for="buddy in barBuddies.filter( | |
(b) => b.sites.includes(runtimeConfig.public.domain) && b[$i18n.locale] | |
)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, especially since we're using this twice, but also because it's quite a bit of logic for the template, I think it's a good idea to make this a computed property.
Fixes #595, the correct barbuddies are now loaded when the language is changed from the navbar.