aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/app.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/app.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js
index de47982..dfd0aeb 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js
@@ -269,6 +269,20 @@ function TransferRow({ it }) {
<${Icon} name=${it.status === 'paused' ? 'play' : 'pause'} />
</button>
`}
+ ${!it.pausable && downloads.SUPPORTED && it.kind === 'download'
+ && (it.status === 'running' || it.status === 'queued') && html`
+ ${/* Say why, rather than leaving a gap where a button is on the row
+ above. Without a granted folder this browser writes through the
+ service worker — a download it already owns, which cannot be
+ paused — so the button is absent for a reason nobody can see,
+ and an upload beside it has one. Shown only where choosing a
+ folder is actually possible: on Firefox and Safari there is no
+ folder to choose and this hint would be a lie. */''}
+ <span class="transfer-nopause" title=${t('transfers.not_pausable')}
+ aria-label=${t('transfers.not_pausable')}>
+ <${Icon} name="pause" />
+ </span>
+ `}
${(it.status === 'running' || it.status === 'queued'
|| it.status === 'preparing' || it.status === 'paused') && html`
<button class="transfer-cancel"