Merge pull request #579 from mozilla/cancel
Hide cancel button when upload reaches 100%
This commit is contained in:
commit
da669b44ff
|
@ -135,6 +135,7 @@ export default function(state, emitter) {
|
||||||
const time = Date.now() - start;
|
const time = Date.now() - start;
|
||||||
const speed = size / (time / 1000);
|
const speed = size / (time / 1000);
|
||||||
metrics.completedUpload({ size, time, speed, type });
|
metrics.completedUpload({ size, time, speed, type });
|
||||||
|
document.getElementById('cancel-upload').hidden = 'hidden';
|
||||||
await delay(1000);
|
await delay(1000);
|
||||||
await fadeOut('upload-progress');
|
await fadeOut('upload-progress');
|
||||||
info.name = file.name;
|
info.name = file.name;
|
||||||
|
|
Loading…
Reference in New Issue