mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Resolve #1798
This commit is contained in:
parent
9eb7f38485
commit
16106a28d5
39 changed files with 88 additions and 4 deletions
|
|
@ -213,15 +213,19 @@ export class MailMessageList extends AbstractViewRight {
|
|||
|
||||
sortText: () => {
|
||||
let mode = FolderUserStore.sortMode(),
|
||||
desc = '' === mode || mode.includes('REVERSE');
|
||||
has = w => mode.includes(w),
|
||||
desc = '' === mode || has('REVERSE');
|
||||
mode = mode.split(/\s+/);
|
||||
if (mode.includes('FROM')) {
|
||||
if (has('FROM')) {
|
||||
return '@' + (desc ? '⬆' : '⬇');
|
||||
}
|
||||
if (mode.includes('SUBJECT')) {
|
||||
if (has('SUBJECT')) {
|
||||
return '𝐒' + (desc ? '⬆' : '⬇');
|
||||
}
|
||||
return (mode.includes('SIZE') ? '✉' : '📅') + (desc ? '⬇' : '⬆');
|
||||
if (has('SIZE')) {
|
||||
return '✉' + (desc ? '⬇' : '⬆');
|
||||
}
|
||||
return (has('ARRIVAL') ? '📨' : '📅') + (desc ? '⬇' : '⬆');
|
||||
},
|
||||
|
||||
downloadAsZipAllowed: () => this.attachmentsActions.includes('zip')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue