remove download cancel button while decrypting

This commit is contained in:
Danny Coates 2018-02-01 11:42:07 -08:00
parent dbfae53222
commit 2292267e39
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
4 changed files with 22 additions and 18 deletions

View file

@ -46,7 +46,7 @@ module.exports = function(state, emit) {
let pageAction = null; //default state: we don't have file metadata
if (state.transfer) {
const s = state.transfer.state;
if (s === 'downloading' || s === 'complete') {
if (['downloading', 'decrypting', 'complete'].indexOf(s) > -1) {
// Downloading is in progress
return download(state, emit);
}