This commit is contained in:
the-djmaze 2023-04-03 09:35:56 +02:00
parent f3845be39f
commit 91e60c1007

View file

@ -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);