From e1e8af2489943296f4bef5b53c481f68f03460ca Mon Sep 17 00:00:00 2001 From: Erica Wright Date: Wed, 4 Oct 2017 16:34:41 -0400 Subject: [PATCH] Hide cancel button when upload reached 100% --- app/fileManager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/fileManager.js b/app/fileManager.js index 661d4163..969c5d1e 100644 --- a/app/fileManager.js +++ b/app/fileManager.js @@ -135,6 +135,7 @@ export default function(state, emitter) { const time = Date.now() - start; const speed = size / (time / 1000); metrics.completedUpload({ size, time, speed, type }); + document.getElementById('cancel-upload').hidden = 'hidden'; await delay(1000); await fadeOut('upload-progress'); info.name = file.name;