mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 14:57:26 +08:00
When message list grouped by FROM show dynamic date/time
This commit is contained in:
parent
ee27ef29d4
commit
3a96823506
2 changed files with 3 additions and 1 deletions
|
@ -153,6 +153,8 @@ export class MailMessageList extends AbstractViewRight {
|
|||
return SettingsUserStore.listGrouped() && sort.includes('DATE') && !uid;
|
||||
},
|
||||
|
||||
timeFormat: () => (FolderUserStore.sortMode() || '').includes('FROM') ? 'SHORT' : 'LT',
|
||||
|
||||
groupedList: () => {
|
||||
let list = [], current, sort = FolderUserStore.sortMode() || 'DATE';
|
||||
if (sort.includes('FROM')) {
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
</div>
|
||||
<div class="sizeParent actionHandle" data-bind="text: friendlySize()"></div>
|
||||
<div class="threads-len" data-bind="visible: 1 < threadsLen(), text: threadsLen"></div>
|
||||
<time class="actionHandle" data-moment-format="LT" data-bind="moment: dateTimeStampInUTC"></time>
|
||||
<time class="actionHandle" data-bind="attr:{'data-moment-format':$root.timeFormat()}, moment: dateTimeStampInUTC"></time>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /ko -->
|
||||
|
|
Loading…
Reference in a new issue