Skip to content

Commit

Permalink
Bugfix: Login page shows wrong selected country flag/language
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 committed Apr 24, 2024
1 parent c3e5157 commit 692d117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h5 class="modal-title" id="settingsModalLabel" th:text="#{settings.title}"></h5
<span id="zipThresholdValue" class="ms-2"></span>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input"id="boredWaiting" th:title="#{settings.bored.help}">
<input type="checkbox" class="form-check-input" id="boredWaiting" th:title="#{settings.bored.help}">
<label class="form-check-label" for="boredWaiting" th:text="#{bored}"></label>
</div>
<div class="mb-3 form-check">
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

document.addEventListener('DOMContentLoaded', function() {

const defaultLocale = document.documentElement.getAttribute('language') || 'en_GB';
const defaultLocale = document.documentElement.getAttribute('data-language') || 'en_GB';
const storedLocale = localStorage.getItem('languageCode') || defaultLocale;

const currentURL = new URL(window.location.href);
Expand Down

0 comments on commit 692d117

Please sign in to comment.