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

Fixed regression caused by #1472

This commit is contained in:
Laurent Cozic
2019-05-11 17:34:45 +01:00
parent 016ce3dd61
commit e5f2a7f2f5

View File

@ -651,7 +651,8 @@ class BaseItem extends BaseModel {
static displayTitle(item) {
if (!item) return '';
return !!item.encryption_applied ? '🔑 ' + _('Encrypted') : (!!item.title)? item.title + '' : Note.defaultTitle(item);
if (!!item.encryption_applied) return '🔑 ' + _('Encrypted');
return !!item.title ? item.title : _('Untitled');
}
static async markAllNonEncryptedForSync() {