Skip to content

Commit

Permalink
updates to the search box
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-addison-h committed Jun 6, 2024
1 parent 5cee9f9 commit d71085b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/femr/ui/views/partials/shared/searchBox.scala.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@(page: java.lang.String, patientId: java.lang.Integer, message: java.lang.String)
@(page: java.lang.String,
currentUser: femr.common.dtos.CurrentUser,
patientId: java.lang.Integer,
message: java.lang.String)

<script>
document.addEventListener('DOMContentLoaded', function(event) {
Expand All @@ -7,7 +10,8 @@
.then(response => response.json())
.then(data => {
languageData = data;
const initialLanguage = localStorage.getItem('languageCode') || 'en';
//const initialLanguage = localStorage.getItem('languageCode') || 'en';
const initialLanguage = @currentUser.getLanguageCode();
updateLanguage(initialLanguage);
document.getElementById('languageSelect').value = initialLanguage;
});
Expand Down

0 comments on commit d71085b

Please sign in to comment.