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: Syntax and settings issues #21

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

Arkshine
Copy link
Contributor

@Arkshine Arkshine commented Jan 8, 2024

Meta: https://meta.discourse.org/t/discourse-jitsi-component-not-working/290861
Followup #20

This PR fixes two issues:

  • Identifier ‘themePrefix’ has already been declared; themePrefix function already exists in a component context.
  • The theme settings are not working because the site settings lookup overwrote them. There is also a logic issue with the show_in_options_dropdown setting, where we want to show the button if only_available_to_staff is not checked or the user is a staff only.

Tests would be welcomed, but I'm not good enough yet to make them correctly and fast.

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks @Arkshine.

@pmusaraj pmusaraj merged commit c5ca2de into discourse:main Jan 8, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants