1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Minor tweaks

This commit is contained in:
Laurent Cozic
2018-03-07 17:35:11 +00:00
parent 5014914dc9
commit 7753f3f842
3 changed files with 15 additions and 10 deletions

View File

@ -63,7 +63,9 @@ shared.checkPasswords = async function(comp) {
shared.decryptedStatText = function(comp) {
const stats = comp.state.stats;
return _('Decrypted items: %s / %s', stats.encrypted !== null ? (stats.total - stats.encrypted) : '-', stats.total !== null ? stats.total : '-');
const doneCount = stats.encrypted !== null ? (stats.total - stats.encrypted) : '-';
const totalCount = stats.total !== null ? stats.total : '-';
return _('Decrypted items: %s / %s', doneCount, totalCount);
}
shared.onSavePasswordClick = function(comp, mk) {