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

Only show language switcher on ace when admin #3327

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

TiBiBa
Copy link
Collaborator

@TiBiBa TiBiBa commented Sep 26, 2022

Description
This PR removes the languages switcher on the ace editor for normal users. It has become a bit redundant, especially with the already existing keyword language switcher on the dropdown bar. We also remove the 'hide keyword switcher' option from the class customizations.

Fixes
This PR fixes #3322

How to test
Verify that the language switcher is still shown when being the admin, otherwise it should be hidden.

Copy link
Member

@Felienne Felienne left a comment

Choose a reason for hiding this comment

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

Works, thanks!!

@Felienne Felienne added the Keep-updated Use this tag to keep your PR uptodate with main automatically label Sep 29, 2022
@mergify mergify bot merged commit e51c7ad into main Sep 29, 2022
@mergify mergify bot deleted the only_show_language_switcher_when_admin branch September 29, 2022 15:03
@Felienne
Copy link
Member

Felienne commented Sep 29, 2022

We also remove the 'hide keyword switcher' option from the class customizations.

Guess who just recorded a video that included an explanation of this feature 😭

mergify bot pushed a commit that referenced this pull request Sep 30, 2022
…3355)

**Description**
We partly re-implement the code deleted in #3327 where we decided to remove the language switcher from the code editor. We now re-introduce a "hide keyword switcher" but instead aim on the menubar dropdown keyword switcher. The back-end code can remain the same, we only had to make some adjustments to the front-end.

**Fixes _issue or discussion number_**
This PR fixes #3354.

**How to test**
Make sure you are in a class and have a keyword-supported-non-english profile language. Verify that you can see and use the keyword switcher dropdown from the menubar. When hidden using the class customizations the button should been gone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Keep-updated Use this tag to keep your PR uptodate with main automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Remove language switcher in Ace window?
2 participants