simplify
This commit is contained in:
parent
59733456ed
commit
3dfc9cadb0
20 changed files with 28 additions and 49 deletions
|
@ -184,9 +184,7 @@ getAddDriveR = page "AAdd a removable drive" (Just Config) $ do
|
|||
case res of
|
||||
FormSuccess (RemovableDrive { mountPoint = d }) -> lift $
|
||||
make (T.unpack d) >>= redirect . EditNewRepositoryR
|
||||
_ -> do
|
||||
let authtoken = webAppFormAuthToken
|
||||
$(widgetFile "configurators/adddrive")
|
||||
_ -> $(widgetFile "configurators/adddrive")
|
||||
where
|
||||
make mountpoint = do
|
||||
liftIO $ makerepo dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue