Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix Barbuddy Bug #652

wants to merge 1 commit into from

Conversation

ilgazer
Copy link
Contributor

@ilgazer ilgazer commented Jan 12, 2025

Fixes #595, the correct barbuddies are now loaded when the language is changed from the navbar.

@ilgazer ilgazer changed the title test Fix Barbuddy Bug Jan 12, 2025
Copy link

cloudflare-workers-and-pages bot commented Jan 12, 2025

Deploying outsite-nl with  Cloudflare Pages  Cloudflare Pages

Latest commit: e5f5b4e
Status: ✅  Deploy successful!
Preview URL: https://0ab41f9f.dwhdelft-nl.pages.dev
Branch Preview URL: https://fix-barbuddy-bug.dwhdelft-nl.pages.dev

View logs

@ilgazer ilgazer changed the title Fix Barbuddy Bug Fix Barbuddy Bug - Draft Jan 12, 2025
Copy link

cloudflare-workers-and-pages bot commented Jan 12, 2025

Deploying dwhdelft-nl with  Cloudflare Pages  Cloudflare Pages

Latest commit: e5f5b4e
Status: ✅  Deploy successful!
Preview URL: https://4a4430d4.dwhdelft-nl-u1a.pages.dev
Branch Preview URL: https://fix-barbuddy-bug.dwhdelft-nl-u1a.pages.dev

View logs

@ilgazer ilgazer changed the title Fix Barbuddy Bug - Draft Fix Barbuddy Bug Jan 12, 2025
Copy link
Member

@thomcsmits thomcsmits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Member

@casperboone casperboone left a 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!

Comment on lines +46 to +48
v-for="buddy in barBuddies.filter(
(b) => b.sites.indexOf(runtimeConfig.public.domain) !== -1 && b[$i18n.locale]
)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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]
)"

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Barbuddies missing descriptions but still showing in English
3 participants