mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Resolve #1037
This commit is contained in:
parent
f3845be39f
commit
91e60c1007
1 changed files with 11 additions and 10 deletions
|
@ -343,6 +343,17 @@ export class MailMessageList extends AbstractViewRight {
|
|||
this.reload();
|
||||
}
|
||||
|
||||
clearListIsVisible() {
|
||||
return (
|
||||
!this.messageListSearchDesc()
|
||||
&& !MessagelistUserStore.error()
|
||||
&& !MessagelistUserStore.endThreadUid()
|
||||
&& MessagelistUserStore().length
|
||||
&& (MessagelistUserStore.isSpamFolder() || MessagelistUserStore.isTrashFolder())
|
||||
&& SettingsCapa('DangerousActions')
|
||||
);
|
||||
}
|
||||
|
||||
clear() {
|
||||
SettingsCapa('DangerousActions')
|
||||
&& showScreenPopup(FolderClearPopupView, [FolderUserStore.currentFolder()]);
|
||||
|
@ -548,16 +559,6 @@ export class MailMessageList extends AbstractViewRight {
|
|||
return '';
|
||||
}
|
||||
|
||||
clearListIsVisible() {
|
||||
return (
|
||||
!this.messageListSearchDesc() &&
|
||||
!MessagelistUserStore.error() &&
|
||||
!MessagelistUserStore.endThreadUid() &&
|
||||
MessagelistUserStore().length &&
|
||||
(MessagelistUserStore.isSpamFolder() || MessagelistUserStore.isTrashFolder())
|
||||
);
|
||||
}
|
||||
|
||||
onBuild(dom) {
|
||||
const b_content = dom.querySelector('.b-content'),
|
||||
eqs = (ev, s) => ev.target.closestWithin(s, dom);
|
||||
|
|
Loading…
Reference in a new issue