In notifications page, remove accidental display of hidden field labels

This commit is contained in:
fr33domlover 2019-05-25 22:27:20 +00:00
parent b7e2776e6a
commit 70d51faa70

View file

@ -495,9 +495,10 @@ getActorKey2R = getActorKey (\ (_, k2, _) -> k2) ActorKey2R
notificationForm :: Maybe (Maybe (InboxItemId, Bool)) -> Form (Maybe (InboxItemId, Bool))
notificationForm defs = renderDivs $ mk
<$> aopt hiddenField "Inbox Item ID#" (fmap fst <$> defs)
<*> aopt hiddenField "New unread flag" (fmap snd <$> defs)
<$> aopt hiddenField (name "Inbox Item ID#") (fmap fst <$> defs)
<*> aopt hiddenField (name "New unread flag") (fmap snd <$> defs)
where
name t = FieldSettings "" Nothing Nothing (Just t) []
mk Nothing Nothing = Nothing
mk (Just ibid) (Just unread) = Just (ibid, unread)
mk _ _ = error "Missing hidden field?"