Skip to content

Commit

Permalink
Merge pull request #233 from vsimakhin/feature/logbook-horizontal-scr…
Browse files Browse the repository at this point in the history
…olling

few corrections for logbook column adjustments
  • Loading branch information
vsimakhin authored Jun 1, 2024
2 parents b0138a8 + 35c3d15 commit 17ccfa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/handlers_aux.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (app *application) HandlerPreferences(w http.ResponseWriter, r *http.Reques
"hide_stats_landings": settings.HideStatsFields.Landings,
"hide_stats_distance": settings.HideStatsFields.Distance,
"signature_image": settings.SignatureImage,
"logbook_no_columns_change": settings.LogbookNoColumnsChnage,
}

app.writeJSON(w, http.StatusOK, data)
Expand Down
2 changes: 1 addition & 1 deletion app/static/js/wlb-logbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const logbookUtils = function () {
* Adjusts the visibility of columns in a table based on the width of a card element.
*/
const adjustColumnVisibility = async () => {
if (!logbook_no_columns_change) {
if (logbook_no_columns_change === true) {
return;
}

Expand Down

0 comments on commit 17ccfa1

Please sign in to comment.