fixes #675. progress on ios

This commit is contained in:
Danny Coates 2018-01-16 13:52:09 -08:00
parent 7fb11ba912
commit 55ed6100e0
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
2 changed files with 39 additions and 33 deletions

View File

@ -6,6 +6,7 @@ module.exports = function(state) {
const transfer = state.transfer;
const div = html`
<div id="page-one">
<div id="download">
<div id="download-progress" class="fadeIn">
<div id="dl-title" class="title">${state.translate(
'downloadingPageProgress',
@ -14,7 +15,9 @@ module.exports = function(state) {
size: bytes(state.fileInfo.size)
}
)}</div>
<div class="description">${state.translate('downloadingPageMessage')}</div>
<div class="description">${state.translate(
'downloadingPageMessage'
)}</div>
${progress(transfer.progressRatio)}
<div class="upload">
<div class="progress-text">${state.translate(
@ -24,6 +27,7 @@ module.exports = function(state) {
</div>
</div>
</div>
</div>
`;
return div;

View File

@ -6,6 +6,7 @@ module.exports = function(state, emit) {
const transfer = state.transfer;
const div = html`
<div id="download">
<div id="upload-progress" class="fadeIn">
<div class="title" id="upload-filename">${state.translate(
'uploadingPageProgress',
@ -26,6 +27,7 @@ module.exports = function(state, emit) {
)}" onclick=${cancel}>${state.translate('uploadingPageCancel')}</button>
</div>
</div>
</div>
`;
function cancel() {