fix display of transfers for remotes not in syncRemotes list

This commit is contained in:
Joey Hess 2012-10-14 14:51:11 -04:00
parent 6ea6a2e71c
commit 592d55ef7c
2 changed files with 2 additions and 5 deletions

View file

@ -67,8 +67,8 @@ onAdd st dstatus _ file _ = case parseTransferFile file of
[ "transfer starting:" [ "transfer starting:"
, show t , show t
] ]
r <- headMaybe . filter (sameuuid t) . syncRemotes r <- headMaybe . filter (sameuuid t)
<$> getDaemonStatus dstatus <$> runThreadState st Remote.remoteList
updateTransferInfo dstatus t info updateTransferInfo dstatus t info
{ transferRemote = r } { transferRemote = r }
sameuuid t r = Remote.uuid r == transferUUID t sameuuid t r = Remote.uuid r == transferUUID t

View file

@ -8,9 +8,6 @@ The webapp is a web server that displays a shiny interface.
This is quite likely because of how the div containing transfers is refereshed. This is quite likely because of how the div containing transfers is refereshed.
If instead javascript was used to update the progress bar etc for transfers If instead javascript was used to update the progress bar etc for transfers
with json data, the buttons would work better. with json data, the buttons would work better.
* Transfers from a remote with syncing disabled show as from "unknown".
(Note that it's probably not practical to prevent a remote with syncing
disabled from initiating transfers, so this can happen.)
## interface ## interface