webapp: Display an alert when there are XMPP remotes, and a cloud transfer repository needs to be configured.
This commit is contained in:
parent
39e979fb65
commit
77c82de4ea
13 changed files with 146 additions and 27 deletions
|
@ -51,10 +51,14 @@ calcSyncRemotes = do
|
|||
alive <- trustExclude DeadTrusted (map Remote.uuid rs)
|
||||
let good r = Remote.uuid r `elem` alive
|
||||
let syncable = filter good rs
|
||||
let nonxmpp = filter (not . isXMPPRemote) syncable
|
||||
return $ \dstatus -> dstatus
|
||||
{ syncRemotes = syncable
|
||||
, syncGitRemotes = filter (not . Remote.specialRemote) syncable
|
||||
, syncDataRemotes = filter (not . isXMPPRemote) syncable
|
||||
, syncGitRemotes =
|
||||
filter (not . Remote.specialRemote) syncable
|
||||
, syncDataRemotes = nonxmpp
|
||||
, syncingToCloudRemote =
|
||||
any (Git.repoIsUrl . Remote.repo) nonxmpp
|
||||
}
|
||||
|
||||
{- Updates the sycRemotes list from the list of all remotes in Annex state. -}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue