mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 23:47:03 +03: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();
|
this.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearListIsVisible() {
|
||||||
|
return (
|
||||||
|
!this.messageListSearchDesc()
|
||||||
|
&& !MessagelistUserStore.error()
|
||||||
|
&& !MessagelistUserStore.endThreadUid()
|
||||||
|
&& MessagelistUserStore().length
|
||||||
|
&& (MessagelistUserStore.isSpamFolder() || MessagelistUserStore.isTrashFolder())
|
||||||
|
&& SettingsCapa('DangerousActions')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
clear() {
|
clear() {
|
||||||
SettingsCapa('DangerousActions')
|
SettingsCapa('DangerousActions')
|
||||||
&& showScreenPopup(FolderClearPopupView, [FolderUserStore.currentFolder()]);
|
&& showScreenPopup(FolderClearPopupView, [FolderUserStore.currentFolder()]);
|
||||||
|
|
@ -548,16 +559,6 @@ export class MailMessageList extends AbstractViewRight {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
clearListIsVisible() {
|
|
||||||
return (
|
|
||||||
!this.messageListSearchDesc() &&
|
|
||||||
!MessagelistUserStore.error() &&
|
|
||||||
!MessagelistUserStore.endThreadUid() &&
|
|
||||||
MessagelistUserStore().length &&
|
|
||||||
(MessagelistUserStore.isSpamFolder() || MessagelistUserStore.isTrashFolder())
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
onBuild(dom) {
|
onBuild(dom) {
|
||||||
const b_content = dom.querySelector('.b-content'),
|
const b_content = dom.querySelector('.b-content'),
|
||||||
eqs = (ev, s) => ev.target.closestWithin(s, dom);
|
eqs = (ev, s) => ev.target.closestWithin(s, dom);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue