Ajax'ed authpreds
This commit is contained in:
parent
58ed6b87a3
commit
179f003c32
@ -290,11 +290,11 @@ postAuthPredsR = do
|
||||
<$> funcForm taForm (fslI MsgActiveAuthTags) True
|
||||
<* submitButton
|
||||
|
||||
formResult authActiveRes $ \authTagActive -> do
|
||||
formResultModal authActiveRes AuthPredsR $ \authTagActive -> do
|
||||
setSessionJson SessionActiveAuthTags authTagActive
|
||||
addMessageI Success MsgAuthPredsActiveChanged
|
||||
redirect AuthPredsR
|
||||
tell . pure =<< messageI Success MsgAuthPredsActiveChanged
|
||||
|
||||
defaultLayout $ do
|
||||
setTitleI MsgAuthPredsActive
|
||||
isModal <- hasCustomHeader HeaderIsModal
|
||||
$(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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user