From 648a81bcdbfb9243eb54546247eafec3ca8a4461 Mon Sep 17 00:00:00 2001 From: eikek Date: Tue, 11 Jan 2022 18:33:26 +0100 Subject: [PATCH] Disable "group by month" option when there is only one group When fulltext search is used, there only is one group. It also doesn't make much sense when there is just one month group as well. --- modules/webapp/src/main/elm/Page/Home/View2.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/webapp/src/main/elm/Page/Home/View2.elm b/modules/webapp/src/main/elm/Page/Home/View2.elm index e75788b5..a8577cf7 100644 --- a/modules/webapp/src/main/elm/Page/Home/View2.elm +++ b/modules/webapp/src/main/elm/Page/Home/View2.elm @@ -326,7 +326,7 @@ defaultMenuBar texts flags settings model = else i [ class "fa fa-square font-thin" ] [] - , disabled = False + , disabled = List.length model.itemListModel.results.groups <= 1 , label = texts.showItemGroups , attrs = [ href "#"