Skip to content

Commit

Permalink
Improved #67
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze committed Mar 29, 2021
1 parent b594f6f commit 1129db3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions dev/View/User/MailBox/MessageList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '⬇' : '⬆');
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,25 @@
</li>
<li class="e-item dividerbar" role="presentation" data-sort="SUBJECT" data-bind="click: changeSort">
<a class="e-link menuitem" href="#" tabindex="-1">
<i class="fontastic">𝐒</i>
<i class="fontastic">𝐒</i>
<span data-i18n="MESSAGE_LIST/SORT_SUBJECT_ASC"></span>
</a>
</li>
<li class="e-item" role="presentation" data-sort="REVERSE SUBJECT" data-bind="click: changeSort">
<a class="e-link menuitem" href="#" tabindex="-1">
<i class="fontastic">𝐒</i>
<i class="fontastic">𝐒</i>
<span data-i18n="MESSAGE_LIST/SORT_SUBJECT_DESC"></span>
</a>
</li>
<li class="e-item dividerbar" role="presentation" data-sort="FROM" data-bind="click: changeSort">
<a class="e-link menuitem" href="#" tabindex="-1">
<i class="fontastic">@</i>
<i class="fontastic">@</i>
<span data-i18n="MESSAGE_LIST/SORT_FROM_ASC"></span>
</a>
</li>
<li class="e-item" role="presentation" data-sort="REVERSE FROM" data-bind="click: changeSort">
<a class="e-link menuitem" href="#" tabindex="-1">
<i class="fontastic">@</i>
<i class="fontastic">@</i>
<span data-i18n="MESSAGE_LIST/SORT_FROM_DESC"></span>
</a>
</li>
Expand Down

0 comments on commit 1129db3

Please sign in to comment.