fix button display for paused transfer
This commit is contained in:
parent
8ba9830653
commit
37eed5d8d0
2 changed files with 6 additions and 3 deletions
|
@ -52,6 +52,9 @@ transfersDisplay warnNoScript = do
|
|||
, $(widgetFile "dashboard/transfers")
|
||||
)
|
||||
else $(widgetFile "dashboard/transfers")
|
||||
where
|
||||
isrunning info = not $
|
||||
transferPaused info || isNothing (startedTime info)
|
||||
|
||||
{- Called by client to get a display of currently in process transfers.
|
||||
-
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
<div .progress .progress-striped>
|
||||
<div .bar style="width: #{percent};">
|
||||
<div .btn-group .span2>
|
||||
$if isNothing (startedTime info)
|
||||
^{actionButton (StartTransferR transfer) Nothing "btn" "icon-play"}
|
||||
$else
|
||||
$if isrunning info
|
||||
^{actionButton (PauseTransferR transfer) Nothing "btn" "icon-pause"}
|
||||
$else
|
||||
^{actionButton (StartTransferR transfer) Nothing "btn" "icon-play"}
|
||||
^{actionButton (CancelTransferR transfer) Nothing "btn" "icon-remove"}
|
||||
|
|
Loading…
Add table
Reference in a new issue