Merge branch 'assistant' into assistant-longpolling-rewrite

This commit is contained in:
Joey Hess 2012-07-30 18:19:24 -04:00
commit 2e54a611c7

View file

@ -164,11 +164,9 @@ transfersDisplay warnNoScript = do
if null transfers if null transfers
then ifM (lift $ showIntro <$> getWebAppState) then ifM (lift $ showIntro <$> getWebAppState)
( introDisplay ident ( introDisplay ident
, noop , $(widgetFile "transfers")
) )
else do else $(widgetFile "transfers")
lift $ modifyWebAppState $ \s -> s { showIntro = False }
$(widgetFile "transfers")
transfersDisplayIdent :: Text transfersDisplayIdent :: Text
transfersDisplayIdent = "transfers" transfersDisplayIdent = "transfers"
@ -189,6 +187,7 @@ introDisplay ident = do
let barelyenough = n == 2 let barelyenough = n == 2
let morethanenough = n > 2 let morethanenough = n > 2
$(widgetFile "intro") $(widgetFile "intro")
lift $ modifyWebAppState $ \s -> s { showIntro = False }
where where
counter = map show ([1..] :: [Int]) counter = map show ([1..] :: [Int])