mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-03 05:52:51 +00:00
Use a icon menu for the edit menu top bar
This commit is contained in:
parent
baa25d0f2f
commit
082f468155
@ -693,30 +693,38 @@ renderEditMenu settings model =
|
||||
|
||||
renderEditButtons : Model -> Html Msg
|
||||
renderEditButtons model =
|
||||
div [ class "ui segment" ]
|
||||
[ button
|
||||
div [ class "ui top attached icon ablue-comp menu" ]
|
||||
[ a
|
||||
[ classList
|
||||
[ ( "ui primary button", True )
|
||||
[ ( "borderless item", True )
|
||||
, ( "invisible", model.item.state /= "created" )
|
||||
]
|
||||
, title "Confirm metadata"
|
||||
, href "#"
|
||||
, onClick ConfirmItem
|
||||
]
|
||||
[ i [ class "check icon" ] []
|
||||
, text "Confirm"
|
||||
]
|
||||
, button
|
||||
, a
|
||||
[ classList
|
||||
[ ( "ui primary button", True )
|
||||
[ ( "borderless item", True )
|
||||
, ( "invisible", model.item.state /= "confirmed" )
|
||||
]
|
||||
, href "#"
|
||||
, title "Unconfirm metadata"
|
||||
, onClick UnconfirmItem
|
||||
]
|
||||
[ i [ class "eye slash outline icon" ] []
|
||||
, text "Unconfirm"
|
||||
]
|
||||
, button [ class "ui negative button", onClick RequestDelete ]
|
||||
[ i [ class "trash icon" ] []
|
||||
, text "Delete"
|
||||
, div [ class "right floated menu" ]
|
||||
[ a
|
||||
[ class "borderless item"
|
||||
, onClick RequestDelete
|
||||
, href "#"
|
||||
, title "Delete the item"
|
||||
]
|
||||
[ i [ class "red trash icon" ] []
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user