mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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,
|
pgpSigned: null,
|
||||||
pgpVerified: null,
|
pgpVerified: null,
|
||||||
|
|
||||||
|
encrypted: false,
|
||||||
pgpEncrypted: null,
|
pgpEncrypted: null,
|
||||||
pgpDecrypted: false,
|
pgpDecrypted: false,
|
||||||
|
|
||||||
|
|
@ -110,7 +111,8 @@ export class MessageModel extends AbstractModel {
|
||||||
this.flags = ko.observableArray();
|
this.flags = ko.observableArray();
|
||||||
|
|
||||||
addComputablesTo(this, {
|
addComputablesTo(this, {
|
||||||
attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()),
|
attachmentIconClass: () =>
|
||||||
|
this.encrypted() ? 'icon-lock' : FileInfo.getAttachmentsIconClass(this.attachments()),
|
||||||
threadsLen: () => this.threads().length,
|
threadsLen: () => this.threads().length,
|
||||||
listAttachments: () => this.attachments()
|
listAttachments: () => this.attachments()
|
||||||
.filter(item => SettingsUserStore.listInlineAttachments() || !item.isLinked()),
|
.filter(item => SettingsUserStore.listInlineAttachments() || !item.isLinked()),
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ html:not(rl-mobile) {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.attachmentParent {
|
.withAttachments .attachmentParent {
|
||||||
margin: 0 10px 0 5px;
|
margin: 0 10px 0 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -298,10 +298,6 @@ html:not(rl-mobile) {
|
||||||
margin-right: 0.25em;
|
margin-right: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.withAttachments) .attachmentParent {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.hasUnseenSubMessage {
|
&.hasUnseenSubMessage {
|
||||||
background-color: rgba(255, 255, 64, 0.15);
|
background-color: rgba(255, 255, 64, 0.15);
|
||||||
border-left-color: lighten(orange, 30%);
|
border-left-color: lighten(orange, 30%);
|
||||||
|
|
|
||||||
|
|
@ -658,6 +658,7 @@ class Message implements \JsonSerializable
|
||||||
'Folder' => $this->sFolder,
|
'Folder' => $this->sFolder,
|
||||||
'Uid' => $this->iUid,
|
'Uid' => $this->iUid,
|
||||||
'subject' => \trim(Utils::Utf8Clear($this->sSubject)),
|
'subject' => \trim(Utils::Utf8Clear($this->sSubject)),
|
||||||
|
'encrypted' => 'multipart/encrypted' == $this->sContentType || $this->PgpEncrypted(),
|
||||||
'MessageId' => $this->sMessageId,
|
'MessageId' => $this->sMessageId,
|
||||||
'SpamScore' => $this->bIsSpam ? 100 : $this->iSpamScore,
|
'SpamScore' => $this->bIsSpam ? 100 : $this->iSpamScore,
|
||||||
'SpamResult' => $this->sSpamResult,
|
'SpamResult' => $this->sSpamResult,
|
||||||
|
|
|
||||||
3
vendors/fontastic/styles.css
vendored
3
vendors/fontastic/styles.css
vendored
|
|
@ -88,6 +88,9 @@
|
||||||
.icon-folder-add::before {
|
.icon-folder-add::before {
|
||||||
content: "\e03c";
|
content: "\e03c";
|
||||||
}
|
}
|
||||||
|
.icon-lock::before {
|
||||||
|
content: "🔒";
|
||||||
|
}
|
||||||
.icon-popup::before {
|
.icon-popup::before {
|
||||||
content: "\e045";
|
content: "\e045";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue