added indefinite progress mode

This commit is contained in:
Danny Coates 2018-02-21 13:59:06 -08:00
parent 099012fac9
commit 03f08de32f
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
6 changed files with 37 additions and 9 deletions

View file

@ -18,6 +18,10 @@ export default class FileReceiver extends Nanobus {
return this.progress[0] / this.progress[1];
}
get progressIndefinite() {
return this.state !== 'downloading';
}
get sizes() {
return {
partialSize: bytes(this.progress[0]),