diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js
index 431fed27..c4f4be55 100644
--- a/app/ui/archiveTile.js
+++ b/app/ui/archiveTile.js
@@ -404,15 +404,17 @@ module.exports.preview = function(state, emit) {
archive.open = true;
}
return html`
-
-
+
+
${archive.name}
${bytes(
archive.size
)}
- ${archiveDetails(state.translate, archive)}
+
+ ${archiveDetails(state.translate, archive)}
+
+
${archive.name}
@@ -444,17 +446,5 @@ module.exports.downloading = function(state, emit) {
${progressPercent}
${progressPercent}
-
- ${state.translate('downloadCancel')}
-
`;
-
- function cancel(event) {
- event.preventDefault();
- event.target.disabled = true;
- emit('cancel');
- }
};
diff --git a/app/ui/download.js b/app/ui/download.js
index 295e0b89..8c62e438 100644
--- a/app/ui/download.js
+++ b/app/ui/download.js
@@ -1,7 +1,6 @@
/* global downloadMetadata */
const html = require('choo/html');
const archiveTile = require('./archiveTile');
-const intro = require('./intro');
const modal = require('./modal');
const notFound = require('./notFound');
@@ -11,20 +10,17 @@ function password(state, emit) {
const div = html`
- ${state.translate('downloadFileTitle')}
+
-
-
+
+ ${state.translate('passwordTryAgain')}
+
`;
@@ -48,14 +52,19 @@ function password(state, emit) {
setTimeout(() => document.getElementById('password-input').focus());
}
- function inputChanged() {
+ function inputChanged(event) {
+ event.stopPropagation();
+ event.preventDefault();
const label = document.getElementById('password-error');
const input = document.getElementById('password-input');
+ const btn = document.getElementById('password-btn');
label.classList.add('invisible');
input.classList.remove('border-red');
+ btn.classList.remove('bg-red', 'hover:bg-red', 'focus:bg-red');
}
function checkPassword(event) {
+ event.stopPropagation();
event.preventDefault();
const password = document.getElementById('password-input').value;
if (password.length > 0) {
@@ -96,13 +105,18 @@ module.exports = function(state, emit) {
switch (state.transfer.state) {
case 'downloading':
case 'decrypting':
- content = archiveTile.downloading(state, emit);
+ content = html`
+
+
${state.translate('downloadingTitle')}
+ ${archiveTile.downloading(state, emit)}
+
+ `;
break;
case 'complete':
content = html`
${state.translate('downloadFinish')}
@@ -118,7 +132,12 @@ module.exports = function(state, emit) {
`;
break;
default:
- content = archiveTile.preview(state, emit);
+ content = html`
+
+
${state.translate('downloadFileTitle')}
+ ${archiveTile.preview(state, emit)}
+
+ `;
}
} else if (state.fileInfo.requiresPassword && !state.fileInfo.password) {
content = password(state, emit);
@@ -127,8 +146,7 @@ module.exports = function(state, emit) {
${state.modal && modal(state, emit)}
- ${content}
- ${intro(state)}
+ ${content}
`;
diff --git a/public/locales/en-US/send.ftl b/public/locales/en-US/send.ftl
index f6013ec2..ca07e46a 100644
--- a/public/locales/en-US/send.ftl
+++ b/public/locales/en-US/send.ftl
@@ -174,4 +174,5 @@ accountBenefitSync = Manage your uploads across devices
manageAccount = Manage Account
logOut = Sign Out
okButton = Ok
-myUploads = My Uploads
\ No newline at end of file
+myUploads = My Uploads
+downloadingTitle = Downloading