Merge branch 'master' into 'live'
Ajax'ed authpreds See merge request !106
This commit is contained in:
commit
076e8e2f34
@ -290,11 +290,11 @@ postAuthPredsR = do
|
|||||||
<$> funcForm taForm (fslI MsgActiveAuthTags) True
|
<$> funcForm taForm (fslI MsgActiveAuthTags) True
|
||||||
<* submitButton
|
<* submitButton
|
||||||
|
|
||||||
formResult authActiveRes $ \authTagActive -> do
|
formResultModal authActiveRes AuthPredsR $ \authTagActive -> do
|
||||||
setSessionJson SessionActiveAuthTags authTagActive
|
setSessionJson SessionActiveAuthTags authTagActive
|
||||||
addMessageI Success MsgAuthPredsActiveChanged
|
tell . pure =<< messageI Success MsgAuthPredsActiveChanged
|
||||||
redirect AuthPredsR
|
|
||||||
|
|
||||||
defaultLayout $ do
|
defaultLayout $ do
|
||||||
setTitleI MsgAuthPredsActive
|
setTitleI MsgAuthPredsActive
|
||||||
|
isModal <- hasCustomHeader HeaderIsModal
|
||||||
$(widgetFile "authpreds")
|
$(widgetFile "authpreds")
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
<form method=post action=@{AuthPredsR} enctype=#{authActiveEnctype}>
|
<form method=post action=@{AuthPredsR} enctype=#{authActiveEnctype} :isModal:data-ajax-submit>
|
||||||
^{authActiveWidget}
|
^{authActiveWidget}
|
||||||
|
|||||||
Reference in New Issue
Block a user