diff --git a/app/fileManager.js b/app/fileManager.js index fa059107..cd353b62 100644 --- a/app/fileManager.js +++ b/app/fileManager.js @@ -53,7 +53,7 @@ export default function(state, emitter) { checkFiles(); }); - // emitter.on('navigate', checkFiles); + emitter.on('navigate', checkFiles); emitter.on('render', () => { lastRender = Date.now(); diff --git a/app/fileReceiver.js b/app/fileReceiver.js index 03347dcd..695d5938 100644 --- a/app/fileReceiver.js +++ b/app/fileReceiver.js @@ -64,6 +64,7 @@ export default class FileReceiver extends Nanobus { const ciphertext = await download.result; this.fileDownload = null; this.msg = 'decryptingFile'; + this.state = 'decrypting'; this.emit('decrypting'); const plaintext = await this.keychain.decryptFile(ciphertext); if (this.cancelled) { diff --git a/app/pages/download.js b/app/pages/download.js index eb6b8b37..4a415f17 100644 --- a/app/pages/download.js +++ b/app/pages/download.js @@ -4,30 +4,33 @@ const { bytes } = require('../utils'); module.exports = function(state, emit) { const transfer = state.transfer; + const cancelBtn = html` + `; + const div = html`