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 event and notice fetching based on selected language #83

Merged
merged 3 commits into from
Jun 22, 2024

Conversation

Veirt
Copy link
Contributor

@Veirt Veirt commented Jun 22, 2024

Changes made:

  1. Modified event and notice fetching to use the selected language from the dropdown menu. Previously, it only fetched events and notices in Chinese, no matter what the selected language is.

  2. Implemented automatic fetching of events and notices when:
    a) Initially loading the website
    b) Changing the language in the dropdown menu

Here's a preview video of the changes:

2024-06-22-1719071838_screenrecord.mp4

I'm making this pull request to bring attention to a bug I noticed and to propose a potential fix. As I've never used C# and Blazor before this project, I recognize there might be more efficient or idiomatic ways to achieve this.

Feel free to close this pull request if you don't find my changes suitable or if you prefer to address the issue differently.

Thank you.

MementoMori.BlazorShared/Pages/Index.razor Outdated Show resolved Hide resolved
MementoMori/MementoNetworkManager.cs Outdated Show resolved Hide resolved
MementoMori/MementoMoriFuncs.Ops.cs Show resolved Hide resolved
@moonheart
Copy link
Owner

Hello Veirt,

Thank you so much for your pull request. I truly appreciate your effort. I've added some comments for your review. Please take a look when you get a chance.

Best regards,
moonheart

@moonheart moonheart merged commit 53f4898 into moonheart:master Jun 22, 2024
@Veirt
Copy link
Contributor Author

Veirt commented Jun 22, 2024

Thanks! Really appreciate you taking the time to go through the code and leave those comments.

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.

None yet

2 participants