From 150cfba4558fd93fdba4f937227325bbdf0ca593 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 7 Apr 2022 19:46:13 +0200 Subject: [PATCH] Don't show invisible columns in table options --- public/js/grocy.js | 2 +- views/stockoverview.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/grocy.js b/public/js/grocy.js index b81940c5..e58d7525 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -1002,7 +1002,7 @@ $(".change-table-columns-visibility-button").on("click", function(e) var title = headerCell.text(); var visible = this.visible(); - if (title.isEmpty() || title.startsWith("Hidden")) + if (title.isEmpty() || title.startsWith("Hidden") || headerCell.hasClass("d-none")) { return; } diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index a3b98a34..6c1098d7 100755 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -175,7 +175,7 @@ {{ $__t('Parent product') }} {{ $__t('Default location') }} {{ $__t('Product picture') }} - {{ $__t('Average price') }} + {{ $__t('Average price') }} @include('components.userfields_thead', array( 'userfields' => $userfields