mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Improved #67
This commit is contained in:
parent
b594f6f5fe
commit
1129db3f04
2 changed files with 13 additions and 13 deletions
|
|
@ -179,16 +179,16 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
messageListFocused: () => Scope.MessageList === AppUserStore.focusedState(),
|
||||
|
||||
sortText: () => {
|
||||
let mode = FolderUserStore.sortMode();
|
||||
if ('' === mode) {
|
||||
return '📅⬇';
|
||||
}
|
||||
let mode = FolderUserStore.sortMode(),
|
||||
desc = '' === mode || mode.includes('REVERSE');
|
||||
mode = mode.split(/\s+/);
|
||||
return (mode.includes('SIZE') ? '✉'
|
||||
: (mode.includes('FROM') ? '@'
|
||||
: (mode.includes('SUBJECT') ? '𝐒'
|
||||
: '📅')))
|
||||
+ (mode.includes('REVERSE') ? '⬇' : '⬆');
|
||||
if (mode.includes('FROM')) {
|
||||
return '@' + (desc ? '⬆' : '⬇');
|
||||
}
|
||||
if (mode.includes('SUBJECT')) {
|
||||
return '𝐒' + (desc ? '⬆' : '⬇');
|
||||
}
|
||||
return (mode.includes('SIZE') ? '✉' : '📅') + (desc ? '⬇' : '⬆');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue