diff --git a/app/fileReceiver.js b/app/fileReceiver.js index b3b5502e..cd80002d 100644 --- a/app/fileReceiver.js +++ b/app/fileReceiver.js @@ -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]), diff --git a/app/fileSender.js b/app/fileSender.js index e9a86c5a..a6cbc0a5 100644 --- a/app/fileSender.js +++ b/app/fileSender.js @@ -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]), diff --git a/app/pages/download/index.js b/app/pages/download/index.js index 149eca10..73857dfb 100644 --- a/app/pages/download/index.js +++ b/app/pages/download/index.js @@ -24,7 +24,7 @@ module.exports = function(state, emit) {