mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Reduce MessageList html/css footprint
This commit is contained in:
parent
48e8138764
commit
6a903bc9b2
3 changed files with 19 additions and 18 deletions
|
|
@ -84,7 +84,6 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
|
||||
this.messageListEndThreadUid = MessageUserStore.listEndThreadUid;
|
||||
|
||||
this.messageListCheckedOrSelected = MessageUserStore.listCheckedOrSelected;
|
||||
this.messageListCompleteLoadingThrottle = MessageUserStore.listCompleteLoading;
|
||||
|
||||
initOnStartOrLangChange(() => this.emptySubjectValue = i18n('MESSAGE_LIST/EMPTY_SUBJECT_TEXT'));
|
||||
|
|
@ -549,7 +548,7 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
this.setActionForAll(
|
||||
FolderUserStore.currentFolderFullNameRaw(),
|
||||
MessageSetAction.SetSeen,
|
||||
this.messageListEndThreadUid()
|
||||
MessageUserStore.listEndThreadUid()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -658,11 +657,21 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
}
|
||||
}
|
||||
|
||||
listEmptyMessage() {
|
||||
if (!this.dragOver()
|
||||
&& !MessageUserStore.list().length
|
||||
&& !MessageUserStore.listCompleteLoading()
|
||||
&& !MessageUserStore.listError()) {
|
||||
return i18n('MESSAGE_LIST/EMPTY_' + (MessageUserStore.listSearch() ? 'SEARCH_' : '') + 'LIST');
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
clearListIsVisible() {
|
||||
return (
|
||||
!this.messageListSearchDesc() &&
|
||||
!this.messageListError() &&
|
||||
!this.messageListEndThreadUid() &&
|
||||
!MessageUserStore.listError() &&
|
||||
!MessageUserStore.listEndThreadUid() &&
|
||||
MessageUserStore.list().length &&
|
||||
(this.isSpamFolder() || this.isTrashFolder())
|
||||
);
|
||||
|
|
@ -820,7 +829,7 @@ export class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
if (this.messageListSearchDesc()) {
|
||||
this.cancelSearch();
|
||||
return false;
|
||||
} else if (this.messageListEndThreadUid()) {
|
||||
} else if (MessageUserStore.listEndThreadUid()) {
|
||||
this.cancelThreadUid();
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue