Fix transfer left indicator
This commit is contained in:
@@ -8,7 +8,7 @@ export let file = {
|
|||||||
size: 0,
|
size: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
$: transfer_left = download_limits.transfer_limit = download_limits.transfer_limit_used
|
$: transfer_left = $download_limits.transfer_limit - $download_limits.transfer_limit_used
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $download_limits.loaded}
|
{#if $download_limits.loaded}
|
||||||
@@ -25,7 +25,7 @@ $: transfer_left = download_limits.transfer_limit = download_limits.transfer_lim
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
You have used {formatDataVolume($download_limits.transfer_limit_used, 3)} of
|
You have used {formatDataVolume($download_limits.transfer_limit_used, 3)} of
|
||||||
your weekly {formatDataVolume($download_limits.transfer_limit, 3)} transfer
|
your daily {formatDataVolume($download_limits.transfer_limit, 3)} transfer
|
||||||
limit. When the transfer limit is exceeded your download speed will
|
limit. When the transfer limit is exceeded your download speed will
|
||||||
be reduced.
|
be reduced.
|
||||||
</p>
|
</p>
|
||||||
|
@@ -4,6 +4,7 @@ import { formatDataVolume, formatDate } from "../../util/Formatting.svelte"
|
|||||||
import IconBlock from "./IconBlock.svelte";
|
import IconBlock from "./IconBlock.svelte";
|
||||||
import TextBlock from "./TextBlock.svelte";
|
import TextBlock from "./TextBlock.svelte";
|
||||||
import ZipItem from "./ZipItem.svelte";
|
import ZipItem from "./ZipItem.svelte";
|
||||||
|
import BandwidthUsage from "./BandwidthUsage.svelte";
|
||||||
|
|
||||||
let dispatch = createEventDispatcher()
|
let dispatch = createEventDispatcher()
|
||||||
|
|
||||||
@@ -78,6 +79,10 @@ const recursive_size = (file) => {
|
|||||||
</button>
|
</button>
|
||||||
</IconBlock>
|
</IconBlock>
|
||||||
|
|
||||||
|
{#if file.show_ads}
|
||||||
|
<BandwidthUsage file={file} on:reload/>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if status === "finished"}
|
{#if status === "finished"}
|
||||||
<TextBlock>
|
<TextBlock>
|
||||||
<h2>Files in this zip archive</h2>
|
<h2>Files in this zip archive</h2>
|
||||||
|
Reference in New Issue
Block a user