web: after adding, just redisplay the journal
This commit is contained in:
parent
009df13baf
commit
67c8ceb142
@ -90,10 +90,9 @@ handleAdd = do
|
|||||||
let t' = txnTieKnot t -- XXX move into balanceTransaction
|
let t' = txnTieKnot t -- XXX move into balanceTransaction
|
||||||
liftIO $ do ensureJournalFileExists journalpath
|
liftIO $ do ensureJournalFileExists journalpath
|
||||||
appendToJournalFileOrStdout journalpath $ showTransaction t'
|
appendToJournalFileOrStdout journalpath $ showTransaction t'
|
||||||
-- setMessage $ toHtml $ (printf "Added transaction:\n%s" (show t') :: String)
|
setMessage [shamlet|<span>Transaction added.|]
|
||||||
setMessage [shamlet|<span>Added transaction:<small><pre>#{chomp $ show t'}</pre></small>|]
|
|
||||||
|
|
||||||
redirect (JournalR, [("add","1")])
|
redirect (JournalR) -- , [("add","1")])
|
||||||
|
|
||||||
-- | Handle a post from the journal edit form.
|
-- | Handle a post from the journal edit form.
|
||||||
handleEdit :: Handler Html
|
handleEdit :: Handler Html
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user