webapp: Remove the "disable remote" feature from the UI.
It's confusing, easy to select by accident and get into a situation the webapp offers no easy recovery from, and pausing syncing works just as well in most situations.
This commit is contained in:
parent
d3af2bd64f
commit
3058e11520
5 changed files with 20 additions and 9 deletions
|
@ -47,11 +47,6 @@ handleXMPPRemoval uuid nonxmpp = do
|
|||
then deletionPage $ $(widgetFile "configurators/delete/xmpp")
|
||||
else nonxmpp
|
||||
|
||||
getDisableRepositoryR :: UUID -> Handler Html
|
||||
getDisableRepositoryR uuid = notCurrentRepo uuid $ handleXMPPRemoval uuid $ do
|
||||
void $ liftAssistant $ disableRemote uuid
|
||||
redirect DashboardR
|
||||
|
||||
getDeleteRepositoryR :: UUID -> Handler Html
|
||||
getDeleteRepositoryR uuid = notCurrentRepo uuid $ handleXMPPRemoval uuid $ do
|
||||
deletionPage $ do
|
||||
|
|
|
@ -87,7 +87,6 @@
|
|||
/config/repository/reorder RepositoriesReorderR GET
|
||||
|
||||
/config/repository/syncnow/#UUID SyncNowRepositoryR GET
|
||||
/config/repository/disable/#UUID DisableRepositoryR GET
|
||||
|
||||
/config/repository/delete/confirm/#UUID DeleteRepositoryR GET
|
||||
/config/repository/delete/start/#UUID StartDeleteRepositoryR GET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue