mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
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:
@ -47,6 +47,7 @@ import Util.Tag
|
||||
type alias Model =
|
||||
{ item : ItemDetail
|
||||
, visibleAttach : Int
|
||||
, attachMenuOpen : Bool
|
||||
, menuOpen : Bool
|
||||
, tagModel : Comp.Dropdown.Model Tag
|
||||
, directionModel : Comp.Dropdown.Model Direction
|
||||
@ -115,6 +116,7 @@ emptyModel : Model
|
||||
emptyModel =
|
||||
{ item = Api.Model.ItemDetail.empty
|
||||
, visibleAttach = 0
|
||||
, attachMenuOpen = False
|
||||
, menuOpen = False
|
||||
, tagModel =
|
||||
Util.Tag.makeDropdownModel
|
||||
@ -269,6 +271,7 @@ type Msg
|
||||
| SaveNameResp (Result Http.Error BasicResult)
|
||||
| UpdateThrottle
|
||||
| KeyInputMsg Comp.KeyInput.Msg
|
||||
| ToggleAttachMenu
|
||||
|
||||
|
||||
type SaveNameState
|
||||
|
Reference in New Issue
Block a user