Allow disabling selectors (#1626)

There was a bug with how we render a Python bool value into JavaScript.
This PR fixes that issue.

Closes #1620
This commit is contained in:
Manuel Kaufmann 2024-11-04 11:16:56 +01:00 committed by GitHub
parent 7b894f5e7a
commit 5db7796b6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
const themeFlyoutDisplay = "{{ theme_flyout_display }}";
const themeVersionSelector = "{{ theme_version_selector }}";
const themeLanguageSelector = "{{ theme_language_selector }}";
const themeVersionSelector = {{ 'true' if theme_version_selector|tobool else 'false' }};
const themeLanguageSelector = {{ 'true' if theme_language_selector|tobool else 'false' }};
if (themeFlyoutDisplay === "attached") {
function renderLanguages(config) {