added indefinite progress mode
This commit is contained in:
parent
099012fac9
commit
03f08de32f
6 changed files with 37 additions and 9 deletions
|
@ -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]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue