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")
|
, $(widgetFile "dashboard/transfers")
|
||||||
)
|
)
|
||||||
else $(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.
|
{- Called by client to get a display of currently in process transfers.
|
||||||
-
|
-
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
<div .progress .progress-striped>
|
<div .progress .progress-striped>
|
||||||
<div .bar style="width: #{percent};">
|
<div .bar style="width: #{percent};">
|
||||||
<div .btn-group .span2>
|
<div .btn-group .span2>
|
||||||
$if isNothing (startedTime info)
|
$if isrunning info
|
||||||
^{actionButton (StartTransferR transfer) Nothing "btn" "icon-play"}
|
|
||||||
$else
|
|
||||||
^{actionButton (PauseTransferR transfer) Nothing "btn" "icon-pause"}
|
^{actionButton (PauseTransferR transfer) Nothing "btn" "icon-pause"}
|
||||||
|
$else
|
||||||
|
^{actionButton (StartTransferR transfer) Nothing "btn" "icon-play"}
|
||||||
^{actionButton (CancelTransferR transfer) Nothing "btn" "icon-remove"}
|
^{actionButton (CancelTransferR transfer) Nothing "btn" "icon-remove"}
|
||||||
|
|
Loading…
Add table
Reference in a new issue