Add edit icon for changing attachment name

This commit is contained in:
Eike Kettner
2020-06-14 14:38:56 +02:00
parent 84a26461ed
commit 0643534994
4 changed files with 218 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
module Util.Maybe exposing
( fromString
( filter
, fromString
, isEmpty
, nonEmpty
, or
@@ -52,3 +53,17 @@ fromString str =
else
Just str
filter : (a -> Bool) -> Maybe a -> Maybe a
filter predicate ma =
case ma of
Just v ->
if predicate v then
Just v
else
Nothing
Nothing ->
Nothing