add a note about only writable drives being listed
This commit is contained in:
parent
e3fa0ebd03
commit
13f7e51724
1 changed files with 2 additions and 1 deletions
|
@ -213,7 +213,7 @@ getCombineRepositoryR newrepopath newrepouuid = do
|
|||
selectDriveForm :: [RemovableDrive] -> Hamlet.Html -> MkMForm RemovableDrive
|
||||
selectDriveForm drives = renderBootstrap $ RemovableDrive
|
||||
<$> pure Nothing
|
||||
<*> areq (selectFieldList pairs) "Select drive:" Nothing
|
||||
<*> areq (selectFieldList pairs `withNote` onlywritable) "Select drive:" Nothing
|
||||
<*> areq textField "Use this directory on the drive:"
|
||||
(Just $ T.pack gitAnnexAssistantDefaultDir)
|
||||
where
|
||||
|
@ -227,6 +227,7 @@ selectDriveForm drives = renderBootstrap $ RemovableDrive
|
|||
, T.concat ["(", T.pack sz]
|
||||
, "free)"
|
||||
]
|
||||
onlywritable = [whamlet|This list only includes drives you can write to.|]
|
||||
|
||||
removableDriveRepository :: RemovableDrive -> FilePath
|
||||
removableDriveRepository drive =
|
||||
|
|
Loading…
Reference in a new issue