1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 10:10:50 +03:00

Switch the order of “edit notes” and “hide notes”

This commit is contained in:
Artyom 2016-03-15 15:41:09 +03:00
parent 9a1dfec816
commit 2504b6c969

View File

@ -637,11 +637,11 @@ renderItemNotes category item = do
section "expanded" [noScriptShown] $ do
let buttons = do
textButton "edit notes" $
JS.switchSection (this, "editing" :: Text)
emptySpan "1em"
textButton "hide notes" $
JS.switchSection (this, "collapsed" :: Text)
emptySpan "1em"
textButton "edit notes" $
JS.switchSection (this, "editing" :: Text)
buttons
if T.null (item^.notes)
then p_ "add something!"