mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-13 00:24:24 +08: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(),
|
messageListFocused: () => Scope.MessageList === AppUserStore.focusedState(),
|
||||||
|
|
||||||
sortText: () => {
|
sortText: () => {
|
||||||
let mode = FolderUserStore.sortMode();
|
let mode = FolderUserStore.sortMode(),
|
||||||
if ('' === mode) {
|
desc = '' === mode || mode.includes('REVERSE');
|
||||||
return '📅⬇';
|
|
||||||
}
|
|
||||||
mode = mode.split(/\s+/);
|
mode = mode.split(/\s+/);
|
||||||
return (mode.includes('SIZE') ? '✉'
|
if (mode.includes('FROM')) {
|
||||||
: (mode.includes('FROM') ? '@'
|
return '@' + (desc ? '⬆' : '⬇');
|
||||||
: (mode.includes('SUBJECT') ? '𝐒'
|
}
|
||||||
: '📅')))
|
if (mode.includes('SUBJECT')) {
|
||||||
+ (mode.includes('REVERSE') ? '⬇' : '⬆');
|
return '𝐒' + (desc ? '⬆' : '⬇');
|
||||||
|
}
|
||||||
|
return (mode.includes('SIZE') ? '✉' : '📅') + (desc ? '⬇' : '⬆');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -130,25 +130,25 @@
|
||||||
</li>
|
</li>
|
||||||
<li class="e-item dividerbar" role="presentation" data-sort="SUBJECT" data-bind="click: changeSort">
|
<li class="e-item dividerbar" role="presentation" data-sort="SUBJECT" data-bind="click: changeSort">
|
||||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
<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>
|
<span data-i18n="MESSAGE_LIST/SORT_SUBJECT_ASC"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="e-item" role="presentation" data-sort="REVERSE SUBJECT" data-bind="click: changeSort">
|
<li class="e-item" role="presentation" data-sort="REVERSE SUBJECT" data-bind="click: changeSort">
|
||||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
<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>
|
<span data-i18n="MESSAGE_LIST/SORT_SUBJECT_DESC"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="e-item dividerbar" role="presentation" data-sort="FROM" data-bind="click: changeSort">
|
<li class="e-item dividerbar" role="presentation" data-sort="FROM" data-bind="click: changeSort">
|
||||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
<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>
|
<span data-i18n="MESSAGE_LIST/SORT_FROM_ASC"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="e-item" role="presentation" data-sort="REVERSE FROM" data-bind="click: changeSort">
|
<li class="e-item" role="presentation" data-sort="REVERSE FROM" data-bind="click: changeSort">
|
||||||
<a class="e-link menuitem" href="#" tabindex="-1">
|
<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>
|
<span data-i18n="MESSAGE_LIST/SORT_FROM_DESC"></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Reference in a new issue