1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 05:02:45 +01:00

Hide cancel button when upload reached 100%

This commit is contained in:
Erica Wright 2017-10-04 16:34:41 -04:00
parent 1eb000f615
commit e1e8af2489
No known key found for this signature in database
GPG Key ID: D9F2AF9D67D0AAB7

View File

@ -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;