summaryrefslogtreecommitdiff
path: root/Assistant/DaemonStatus.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-03-15 17:52:41 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-03-15 17:52:41 -0400
commit77e43ec65fff0aaaa1e08caffeb654971aee0b36 (patch)
tree4f09745fe8b3433293dd78eb74c5abf9f3154e10 /Assistant/DaemonStatus.hs
parente41db4a717f8e92c2c33704196f43224ae6a5ec8 (diff)
webapp: Display an alert when there are XMPP remotes, and a cloud transfer repository needs to be configured.
Diffstat (limited to 'Assistant/DaemonStatus.hs')
-rw-r--r--Assistant/DaemonStatus.hs8
1 files changed, 6 insertions, 2 deletions
diff --git a/Assistant/DaemonStatus.hs b/Assistant/DaemonStatus.hs
index ea57176b5..fcfb1a4f3 100644
--- a/Assistant/DaemonStatus.hs
+++ b/Assistant/DaemonStatus.hs
@@ -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. -}