From f651b87bbd4f251023a538853d5659fefda74876 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 18 Jun 2013 17:02:58 -0400 Subject: [PATCH] revert broken change that prevented saving changes to local repo People who get annoyed at not being able to edit "here" can send me a patch, I don't have time for this nonsense. --- Assistant/WebApp/Configurators/Edit.hs | 3 +-- Assistant/WebApp/Form.hs | 7 ------- ...ble_to_change_repository_group_of___34__here__34__.mdwn | 2 ++ 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Assistant/WebApp/Configurators/Edit.hs b/Assistant/WebApp/Configurators/Edit.hs index 28eed2af59..f3eb0df8fc 100644 --- a/Assistant/WebApp/Configurators/Edit.hs +++ b/Assistant/WebApp/Configurators/Edit.hs @@ -134,8 +134,7 @@ setRepoConfig uuid mremote oldc newc = do editRepositoryAForm :: Bool -> RepoConfig -> MkAForm RepoConfig editRepositoryAForm ishere def = RepoConfig - <$> areq (if ishere then disabledTextField else textField) - "Name" (Just $ repoName def) + <$> areq textField "Name" (Just $ repoName def) <*> aopt textField "Description" (Just $ repoDescription def) <*> areq (selectFieldList groups `withNote` help) "Repository group" (Just $ repoGroup def) <*> associateddirectory diff --git a/Assistant/WebApp/Form.hs b/Assistant/WebApp/Form.hs index deefef3b1d..d7a6c621c2 100644 --- a/Assistant/WebApp/Form.hs +++ b/Assistant/WebApp/Form.hs @@ -33,13 +33,6 @@ textField = F.textField |] } -disabledTextField :: MkField Text -disabledTextField = F.textField - { fieldView = \theId name attrs val _isReq -> [whamlet| - -|] - } - {- Also without required attribute. -} passwordField :: MkField Text passwordField = F.passwordField diff --git a/doc/bugs/unable_to_change_repository_group_of___34__here__34__.mdwn b/doc/bugs/unable_to_change_repository_group_of___34__here__34__.mdwn index 07ce3dad89..4098f8acfe 100644 --- a/doc/bugs/unable_to_change_repository_group_of___34__here__34__.mdwn +++ b/doc/bugs/unable_to_change_repository_group_of___34__here__34__.mdwn @@ -9,3 +9,5 @@ It highlights the (now empty) name field, and says "value is required". ### What version of git-annex are you using? On what operating system? git-annex version: 4.20130618-g333cb8e Ubuntu 13.04 + +> [[fixed|done]] --[[Joey]]