24
1
Fork 0

Merge pull request #1010 from mozilla/totalSize

added total size to wip tile
This commit is contained in:
Danny Coates 2018-11-19 21:37:31 -08:00 committed by GitHub
commit 5afa4e5c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -209,12 +209,17 @@ module.exports.wip = function(state, emit) {
/>
<label
for="file-upload"
class="flex flex-row items-center w-full p-2 cursor-pointer"
class="flex flex-row items-center justify-between w-full p-2 cursor-pointer"
title="${state.translate('addFilesButton')}"
>
<img src="${assets.get('addfiles.svg')}" class="w-6 h-6 mr-2" /> ${
state.translate('addFilesButton')
}
<div class="flex items-center">
<img src="${assets.get('addfiles.svg')}" class="w-6 h-6 mr-2" /> ${
state.translate('addFilesButton')
}
</div>
<div class="font-normal text-sm text-grey-darker">
${state.translate('totalSize', { size: bytes(state.archive.size) })}
</div>
</label>
</div>
${expiryOptions(state, emit)} ${password(state, emit)}

View File

@ -52,6 +52,7 @@ fileCount = { $num ->
[one] 1 file
*[other] { $num } files
}
totalSize = Total Size: { $size }
copyUrlFormLabelWithName = Copy and share the link to send your file: { $filename }
copyUrlFormButton = Copy to clipboard
copiedUrl = Copied!