Move attachment tabs into a menu

If multiple attachments are present, the tab menu doesn't show all. So
if there is more than one attachment they can be selected from a menu.
This commit is contained in:
Eike Kettner
2020-09-26 01:11:56 +02:00
parent ca05b3c195
commit e831d7bdd7
5 changed files with 179 additions and 7 deletions

View File

@ -758,7 +758,7 @@ update key flags inav settings msg model =
noSub ( { model | sentMails = sm }, Cmd.none )
ToggleSentMails ->
noSub ( { model | sentMailsOpen = not model.sentMailsOpen, visibleAttach = -1 }, Cmd.none )
noSub ( { model | sentMailsOpen = not model.sentMailsOpen }, Cmd.none )
SentMailsResp (Ok list) ->
let
@ -1266,6 +1266,9 @@ update key flags inav settings msg model =
-- field and requires to activate the throttle
withSub ( model_, Cmd.none )
ToggleAttachMenu ->
noSub ( { model | attachMenuOpen = not model.attachMenuOpen }, Cmd.none )
--- Helper