unify two similar alerts
This commit is contained in:
parent
ed1db85d88
commit
069473872f
2 changed files with 1 additions and 5 deletions
|
@ -239,10 +239,6 @@ commitAlert = activityAlert Nothing
|
|||
showRemotes :: [Remote] -> TenseChunk
|
||||
showRemotes = UnTensed . T.unwords . map (T.pack . Remote.name)
|
||||
|
||||
pushAlert :: [Remote] -> Alert
|
||||
pushAlert rs = activityAlert Nothing
|
||||
[Tensed "Syncing" "Synced", "with", showRemotes rs]
|
||||
|
||||
pushRetryAlert :: [Remote] -> Alert
|
||||
pushRetryAlert rs = activityAlert
|
||||
(Just $ tenseWords [Tensed "Retrying" "Retried", "sync"])
|
||||
|
|
|
@ -104,7 +104,7 @@ pushToRemotes notifypushes remotes = do
|
|||
let go = pushToRemotes' now notifypushes remotes
|
||||
if null nonxmppremotes
|
||||
then go
|
||||
else alertWhile (pushAlert nonxmppremotes) go
|
||||
else alertWhile (syncAlert nonxmppremotes) go
|
||||
pushToRemotes' :: UTCTime -> Bool -> [Remote] -> Assistant Bool
|
||||
pushToRemotes' now notifypushes remotes = do
|
||||
(g, branch, u) <- liftAnnex $ do
|
||||
|
|
Loading…
Add table
Reference in a new issue