From 23fc85524d93ef1cab227a368e911ae771e8483d Mon Sep 17 00:00:00 2001 From: Soumya Himanish Mohapatra Date: Sat, 27 Jan 2018 10:39:50 +0530 Subject: [PATCH] don't show the download button until the filename is loaded --- app/templates/preview.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/templates/preview.js b/app/templates/preview.js index 63b1ae2a7..ef1c76394 100644 --- a/app/templates/preview.js +++ b/app/templates/preview.js @@ -38,6 +38,10 @@ module.exports = function(state, emit) { `; + if (!state.transfer) { + const ele = action.querySelector('#download-btn'); + ele.parentNode.removeChild(ele); + } if (fileInfo.pwd && !fileInfo.password) { action = downloadPassword(state, emit); } else if (!state.transfer) {