mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Show 🔒 (lock) glyph in messagelist for encrypted messages
This commit is contained in:
parent
3664b140c4
commit
245aaa92a2
4 changed files with 8 additions and 6 deletions
|
|
@ -95,6 +95,7 @@ export class MessageModel extends AbstractModel {
|
|||
pgpSigned: null,
|
||||
pgpVerified: null,
|
||||
|
||||
encrypted: false,
|
||||
pgpEncrypted: null,
|
||||
pgpDecrypted: false,
|
||||
|
||||
|
|
@ -110,7 +111,8 @@ export class MessageModel extends AbstractModel {
|
|||
this.flags = ko.observableArray();
|
||||
|
||||
addComputablesTo(this, {
|
||||
attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()),
|
||||
attachmentIconClass: () =>
|
||||
this.encrypted() ? 'icon-lock' : FileInfo.getAttachmentsIconClass(this.attachments()),
|
||||
threadsLen: () => this.threads().length,
|
||||
listAttachments: () => this.attachments()
|
||||
.filter(item => SettingsUserStore.listInlineAttachments() || !item.isLinked()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue