mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 15:15:58 +00:00
Put edit notes icon in item action bar
This commit is contained in:
parent
0a1b3fcf95
commit
1d1df58cb9
@ -1033,7 +1033,7 @@ view inav model =
|
|||||||
[ ( "toggle item", True )
|
[ ( "toggle item", True )
|
||||||
, ( "active", model.menuOpen )
|
, ( "active", model.menuOpen )
|
||||||
]
|
]
|
||||||
, title "Edit item"
|
, title "Edit Metadata"
|
||||||
, onClick ToggleMenu
|
, onClick ToggleMenu
|
||||||
, href ""
|
, href ""
|
||||||
]
|
]
|
||||||
@ -1050,6 +1050,21 @@ view inav model =
|
|||||||
]
|
]
|
||||||
[ i [ class "mail outline icon" ] []
|
[ i [ class "mail outline icon" ] []
|
||||||
]
|
]
|
||||||
|
, a
|
||||||
|
[ classList
|
||||||
|
[ ( "toggle item", True )
|
||||||
|
, ( "active", isEditNotes model.notesField )
|
||||||
|
]
|
||||||
|
, if isEditNotes model.notesField then
|
||||||
|
title "Cancel editing"
|
||||||
|
|
||||||
|
else
|
||||||
|
title "Edit Notes"
|
||||||
|
, onClick ToggleEditNotes
|
||||||
|
, href "#"
|
||||||
|
]
|
||||||
|
[ i [ class "edit outline icon" ] []
|
||||||
|
]
|
||||||
]
|
]
|
||||||
, renderMailForm model
|
, renderMailForm model
|
||||||
, div [ class "ui grid" ]
|
, div [ class "ui grid" ]
|
||||||
@ -1137,13 +1152,6 @@ renderNotes model =
|
|||||||
]
|
]
|
||||||
[ i [ class "eye slash icon" ] []
|
[ i [ class "eye slash icon" ] []
|
||||||
]
|
]
|
||||||
, a
|
|
||||||
[ class "ui right corner label"
|
|
||||||
, onClick ToggleEditNotes
|
|
||||||
, href "#"
|
|
||||||
]
|
|
||||||
[ i [ class "edit icon" ] []
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -1545,16 +1553,6 @@ renderEditButtons model =
|
|||||||
[ i [ class "trash icon" ] []
|
[ i [ class "trash icon" ] []
|
||||||
, text "Delete"
|
, text "Delete"
|
||||||
]
|
]
|
||||||
, button
|
|
||||||
[ classList
|
|
||||||
[ ( "ui secondary right floated icon button", True )
|
|
||||||
, ( "basic", model.notesField == HideNotes || model.notesField == ViewNotes )
|
|
||||||
]
|
|
||||||
, title "Toggle Notes Form"
|
|
||||||
, onClick ToggleEditNotes
|
|
||||||
]
|
|
||||||
[ i [ class "edit outline icon" ] []
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user