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

@ -20,6 +20,10 @@ export default class FileSender extends Nanobus {
return this.progress[0] / this.progress[1];
}
get progressIndefinite() {
return ['fileSizeProgress', 'notifyUploadDone'].indexOf(this.msg) === -1;
}
get sizes() {
return {
partialSize: bytes(this.progress[0]),