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

Frontend not synced with backend Discord status #292

Closed
daanbreur opened this issue Jul 15, 2024 · 1 comment
Closed

Frontend not synced with backend Discord status #292

daanbreur opened this issue Jul 15, 2024 · 1 comment

Comments

@daanbreur
Copy link
Contributor

daanbreur commented Jul 15, 2024

Currently the backend doesn't know if the Discord integration is enabled or disabled.

Proposed fix:

  • add "discord_integration_enabled" to the "ctfnote.settings" table, readable by user_guest.
  • write to this field every time the database (and bot) are started, write a false or true respectively.
  • read this just like the style configuration is read client sided
    • Display warning its disabled.
    • Or, hide element outright.
@JJ-8
Copy link
Collaborator

JJ-8 commented Jul 18, 2024

Fixed in #296

@JJ-8 JJ-8 closed this as completed Jul 18, 2024
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

No branches or pull requests

2 participants