Allow POSIX platforms only to stop downloads. Windows is another ball of wax, as usual.

This commit is contained in:
2022-01-06 21:37:30 +10:30
parent f487ff0371
commit 4a5b5009eb
3 changed files with 10 additions and 2 deletions

View File

@@ -21,7 +21,9 @@
</table>
<p>You can close this window and your download will continue. Check the <a href="/" target="_gropple_status">Status page</a> to see all downloads in progress.</p>
{{ if .canStop }}
<button x-show="state=='downloading'" class="pure-button" @click="stop()">stop</button>
{{ end }}
<div>
<h4>Logs</h4>
<pre x-text="log">