mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Fix load-more button state
This commit is contained in:
@ -10,7 +10,9 @@ module Data.Items exposing
|
||||
, first
|
||||
, flatten
|
||||
, idSet
|
||||
, isEmpty
|
||||
, length
|
||||
, nonEmpty
|
||||
, replaceIn
|
||||
, unwrapGroups
|
||||
)
|
||||
@ -23,6 +25,16 @@ import Set exposing (Set)
|
||||
import Util.List
|
||||
|
||||
|
||||
isEmpty : ItemLightList -> Bool
|
||||
isEmpty list =
|
||||
List.all (.items >> List.isEmpty) list.groups
|
||||
|
||||
|
||||
nonEmpty : ItemLightList -> Bool
|
||||
nonEmpty list =
|
||||
not (isEmpty list)
|
||||
|
||||
|
||||
flatten : ItemLightList -> List ItemLight
|
||||
flatten list =
|
||||
List.concatMap .items list.groups
|
||||
|
Reference in New Issue
Block a user